Starting MySQL. ERROR! The server quit without updating PID file
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Starting MySQL. ERROR! The server quit without updating PID file相关的知识,希望对你有一定的参考价值。
我在my.cnf中添加了一个log-bin=/data/docker/lisa/mysql/data/mysql-bin
重启mysql报错。
[[email protected] data]# service mysql restart
Shutting down MySQL.. SUCCESS!
Starting MySQL. ERROR! The server quit without updating PID file (/data/docker/lisa/mysql/data//6e05ca49e205.pid).
怎么办??
查看我的errorlog
# tail -f 50 b0d81312ea9e.err
2016-12-28T07:58:19.333819Z 0 [ERROR] You have enabled the binary log, but you haven‘t provided the mandatory server-id. Please refer to the proper server start-up parameters documentation
2016-12-28T07:58:19.333854Z 0 [ERROR] Aborting
解决办法:
#vim /etc/my.cnf
添加一行
server_id = 43306
[[email protected] data]# service mysql restart
ERROR! MySQL server PID file could not be found!
Starting MySQL. SUCCESS!
OK!!!
以上是关于Starting MySQL. ERROR! The server quit without updating PID file的主要内容,如果未能解决你的问题,请参考以下文章
Starting MySQL... ERROR! The server quit without updating PID file 问题解决
MySQL 启动日志报错:Starting MySQL. ERROR! The server quit without updating PID file
mysql启动时报错:Starting MySQL... ERROR! The server quit without updating PID file (/opt/mysql/data/mysql
Starting MySQL.. ERROR! The server quit without updating PID file (/var/lib/mysql/localhost.localdom
Starting MySQL.. ERROR! The server quit without updating PID file
Starting MySQL.. ERROR! The server quit without updating PID file (/usr/local/mysql/data/vm10-0-0-19