How to install MySQL 5.6 on CentOS 7
CentOS 7 come with MariaDB, a drop-in replacement for MySQL. In some cases, you need to install the Oracle MySQL server.
Download and install MySQL repository
1 |
rpm -ivh http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm |
Next, you can install the MySQL server by running the command
1 |
yum install mysql-community-server |
Enable MySQL to start on boot
1 |
systemctl enable mysqld |
Start MySQL with
1 |
systemctl start mysqld |
To secure MySQL run
1 |
mysql_secure_installation |