I want use MySQL on CentOS7.
installed MySQL package using yum.
[root@node01 ~]# yum install mysql mysql-*
then,
[root@node01 ~]# systemctl start mysqld.service
Failed to issue method call: Unit mysqld.service failed to load: No such file or directory.
i can not execute MySQL. How can i solve this problem?
解决方案
when you run
yum install mysql
command by default it installs mariadb not mysql. so try this following command
yum list installed | grep mariadb
if mariadb-server is missing try this following command
yum install mariadb-server
it installs the server package then start the service
systemctl start mariadb
or
service mariadb start
My issue is solved in this way.
Thanks