启动MySQL:
systemctl start mysqld.service
报错:
Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.
执行:
chmod -R 777 /var/lib/mysql/auto.cnf
chown mysql:mysql /var/lib/mysql -R
然后执行:
systemctl start mysqld.service
启动正常
注意:本文归作者所有,未经作者允许,不得转载