Install MySQL server on CentOS 7


Install MySQL community package:

yum install

Instal the server:

yum install mysql-community-server

Disable foreign connections and X Plugin by adding to /etc/my.cnf:


If you're using PHP then also install PHP client:

yum install php-mysql

Start MySQL server:

service mysqld start

You will find MySQL temporary root password in MySQL log file which is located at /var/log/mysqld.log

Rate this post:
Share this page:

See also how to:

How to install PHP FastCGI Process Manager (FPM) on CentOS 7
How to install PostgreSQL database server on Linux
A very simple steps to install PHP 7 on CentOS 7
How to install Java runtime environment on CentOS 7
How to install NGINX web-server on Linux and confiure its basic settings