You are viewing an old version of this page. View the current version.

Compare with Current View Page History

Version 1 Current »

When you install MySQL on CentOS 8, you will need to install other associated packages as well. It can be easily solved by @ option when you call yum command.

Following command line will install all the associated packages at one shot.

yum -y install @mysql


If you haven't installed PHP and planning to use it. Following example will help you to install all other associated packages with MySQL.

yum -y install @php


Once installation is compete, you will need to run following commands to start the service automatically.

systemctl start mysqld
systemctl enable --now mysqld
systemctl status mysqld


Final action you should do is running security script for MySQL:

mysql_secure_installation


  • No labels