Failed to start mysqld.service: Unit not found

在centos7上启动启动MySQL出错,原来是因为MySQL现在使用成MariaDB代替

[root@localhost soft]# service mysqld start
Redirecting to /bin/systemctl start mysqld.service
Failed to start mysqld.service: Unit not found

解决方法:

yum install -y mariadb-server
start mariadb.service
enable mariadb.service

尝试一下:

可以了 

猜你喜欢

转载自blog.csdn.net/zhou_438/article/details/88935810