centos7,关闭mysql。出现mysql启动不了的情况

具体原因如下:

Job for mysqld.service failed because the control process exited with error code. See "systemctl status mysqld.service" and "journalctl -xe" for details.

然后呢,我把my.cnf里面的

default-character-set=utf8mb4  

这一行去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉去掉。

就好了。

好像只需要character-set-server=utf8mb4 这一行就行了,和windows不一样。

原文地址:https://www.cnblogs.com/fuckingPangzi/p/10524669.html