How to install MySQL on CentOS 7

banner dedicated


In this tutorial, we will explain how to install MySQL on your CentOS 7 Dedicated Server.


First you need to download the MySQL repository

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


Install the MySQL repository

rpm -ivh mysql57-community-release-el7-9.noarch.rpm


Perform the installation of MySQL on your server

yum install mysql-server


Start MySQL

systemctl start mysql


Complete the installation and secure your MySQL server

mysql_secure_installation

You will be prompted to set your root new root MySQL password.


Test your installation

mysql -u root -p


banner dedicated


Colo-Serv Communications has written 31 articles

Premium Dedicated Hosting Services

Leave a Reply

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

20 + six =

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>