•  Home
  •  Dashboard
  •  Company
    • About Us
    • Blog
    • Careers
    • Contact Us
    • Data Centers
    • Looking Glass
    • Network
    • Reseller
  •  Hosting Services
    • Backup
    • Content Delivery Network
    • Colocation Hosting
    • Dedicated Hosting
    • DDoS Mitigation
    • IP Transit
    • Private Cloud
    • Wavelength
  •  Solutions
    • Ecommerce
    • Finance
    • Gaming
    • Hosting
    • Management
    • Security
    • System Integrator
  •  Support
    • Community
    • Knowledge Base
    • Open A Ticket
  •  USA & Canada: 800-933-1517
  •  International: 626-549-2801
  •  Email: sales@psychz.net
  • Services
    • Dedicated Servers
    • Colocation
    • Private Cloud
    • DDos Protection
    • IP Transit
    • CDN
    • Backup
  • Solutions
    • Ecommerce
    • Security
    • Gaming
    • Hosting
    • Management
    • Finance
    • System Integrator
  • Dashboard

Install MySQL Centos 7

  • Home
  • Client
  • Qa Forum
  • Install MySQL Centos 7

Posted By: Simon | 1 Replies | Last Reply On: Oct 05, 2017 03:00:19

I read few articles online but can't seem to find one that works.  can someone provide clear steps on how to install MySQL on centos 7? 

Psychz - Nikhil

Votes: 0Posted On: Oct 05, 2017 03:00:19
 

Hi!

I can understand your confusion as in CentOS 7 the MariaDB is installed when you type in the command "yum install mysql". MariaDB is a fork of MySQL and works really well with CentOS 7. Hence, if you want to install MySQL,  you will have to download the files directly from the site. However, it is recommended that you use MariaDB until you have a specific task from MySQL.
The following steps will guide you towards the installation of MySQL on CentOS 7. 

(Note: Uninstall MariaDB from the system as it can interfere with the installation.)  \

 

Prerequisites

1. CentOS 7 operating system

2. A user with sudo privileges

 

Getting the MySQL package

To get the MySQL package, you will first have to view the name of the package from the MySQL yum repository web page.

https://dev.mysql.com/downloads/repo/yum/

Here is a sample output for the following.

 

Here we will select "Red Hat Enterprise Linux 7 / Oracle Linux 7 (Architecture Independent), RPM Package" package. Just copy the package name given in brackets and include in the following command. This command will save the file in your system.

wget https://dev.mysql.com/get/mysql57-community-release-el7-11.noarch.rpm

 

Installing the MySQL package

You can check the package integrity by running the following command and comparing its value with the value on the web page.

md5sum mysql57-community-release-el7-11.noarch.rpm

 

 

Now that we have downloaded and verified the package, we will install it by running the following commands.

sudo rpm -ivh mysql57-community-release-el7-11.noarch.rpm
sudo yum install mysql-server

 

Starting MySQL services

The MySQL services can be started with the help of the following command.

sudo systemctl start mysqld

 

To check if the service is started, you can check its status by running the following command.

sudo systemctl status mysqld

 

Once you have installed and started the MySQL service, you can configure it as per your liking.

 

Was this reply helpful?

Related topics

  • Ubuntu remove mysql
  • CentOS 7: "CALL IT RED HAT 7 LITE"
  • Installing MariaDB on Centos 7
  • Top SQL Databases
  • How to monitor MySQL using Nagios?
  • How to create a table in mysql using phpmyadmin?
  • Dedicated MySQL Server
  • Automatic Backup Of MySQL Database
  • Installation of Lamp Stack on CentOS 7
  • How to install cPanel?
  • Setup VPN on CentOS 8
  • Yum Update Not Working on Centos 7
  • Top Hosting Control Panels For Linux
  • In Comparison: SQL VS NoSql
  • Linux Systems Are In Serious Need Of A Ghostbuster
Hosting Services
  • Dedicated Hosting
  • Colocation Hosting
  • Backup
  • IP Transit
  • DDoS Mitigation
Support
  • Portal Login
  • Knowledgebase
  • Community
Company
  • About Us
  • Contact Us
  • Network
  • Data Centers
  • Looking Glass
  • Affiliates
  • Reseller
  • Blog
Policies
  • Privacy Policy
  • Acceptable Usage Policy
  • Terms and Conditions
  • Service Level Agreement
Company
  • Psychz Networks,
    A Profuse Solutions Company
    611 Wilshire Blvd #300
    Los Angeles,California 90017
    USA
  • US/Canada: 800-933-1517
  • International: 626-549-2801
Subscribe to Our Mailing List
* indicates required
Copyright © 2023 Psychz Networks, A Profuse Solutions Inc Company