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 |
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.“ |
Install the latest version of MySQL (currently 8.0) using the following command:
$ yum install mysql-community-server |
Start MySQL using the following command:
$ service mysqld start |
Check the MySQL status.
$ systemctl status mysqld.service |
And check the MySQL version.
$ mysql –version |
Following the steps mentioned above, we can install MySQL 8.0 on CentOS 7.