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


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


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 32 articles

Premium Dedicated Hosting Services

Leave a Reply

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

18 − fourteen =

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>