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

rpm -ivh http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm

Next, you can install the MySQL server by running the command

Advertisement

yum install mysql-community-server

Enable MySQL to start on boot

systemctl enable mysqld

Start MySQL with

systemctl start mysqld

To secure MySQL run

mysql_secure_installation
Add a comment

Leave a Reply

Your email address will not be published. Required fields are marked *

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Advertisement