Category Archives: Uncategorized

Yum install mysql not able to start mysql or mariadb service

 

Sometimes When you run:  yum install mysql
command by default it installs MariaDB not MySQL.

and you are not able to start up mysqld or mariadb.service

you should then try the following command:

sudo yum list installed | grep mariadb
if mariadb-server is missing then you need to run this following command:

sudo yum install mariadb-server
it installs the server package then start the service:

sudo systemctl start mariadb
or:

sudo service mariadb start

————— setting the root password ——————-

sudo /usr/bin/mysql_secure_installation