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不一样。

posted @ 2019-03-13 17:35  正能量教官  阅读(773)  评论(0编辑  收藏  举报