HOW TO INSTALL MYSQL 8.0 ON CENTOS 7

From PheonixSolutions
Jump to navigation Jump to search

HOW TO INSTALL MYSQL 8.0 ON CENTOS 7


Introduction:

Mysql is the latest release of the powerful MySQL database management system. To start installing the MySQL 8.0 server on CentOS 7, you must add the official MySQL community repository to your system. Run the following command.

Prerequisite:

1. Server root login credentials.

Step 1:

Adding the MySQL Yum Repository

 wget https://repo.mysql.com/mysql80-community-release-el7-1.noarch.rpm

Step 2:
After downloading the package for your Linux platform, install the downloaded package with the following command:


 yum localinstall mysql80-community-release-el7-1.noarch.rpm


Step 3:

You can verify that the MySQL Yum repository has been added successfully or not by using the following command:


 yum repolist enabled | grep “mysql.-community.


Step 4:
Install the latest version of MySQL (currently 8.0) using the following command:

 yum install mysql-community-server


Step 5:
Start MySQL using the following command:

 service mysqld start


Step 6:

Check the MySQL status.

 systemctl status mysqld.service


Step 6:
And check the MySQL version.


 mysql –version


Conclusion
Following the steps mentioned above, we can install MySQL 8.0 on CentOS 7.