在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
尝试一下:
可以了