ERROR! The server quit without updating PID file (/usr/local/mysql/var/bogon.pid).

由于mysql日志过大,我把日志给删除了,登陆mysql报错:error: 2002: Can’t connect to local MySQL server through socket ‘/tmp/mysql.sock’ (2) when trying to connect;

重启MySQL也报错误:ERROR! The server quit without updating PID file (/usr/local/mysql/var/bogon.pid).

后来我把/usr/local/mysql/var/mysql-bin.index删除,在重启MySQL就好了!

不能随便删除日志啊

发表评论

电子邮件地址不会被公开。 必填项已用*标注