xjusticex
2016/07/07
还是不行。数据库挂了之后,如果不关闭禅道或者重启禅道的话,启动mysql会出现:Starting MySQL. ERROR! The server quit without updating PID file (/usr/local/mysql/var/iZ94aqs6nntZ.pid).的错误。一旦关闭活重启禅道,启动mysql就是正常的。查看原来的mysql错误日志:
2016-07-07 13:18:23 15161 [Note] InnoDB: 128 rollback segment(s) are active.
2016-07-07 13:18:23 15161 [Note] InnoDB: Waiting for purge to start
2016-07-07 13:18:23 15161 [Note] InnoDB: 5.6.23 started; log sequence number 2737600
2016-07-07 13:18:23 15161 [Note] Recovering after a crash using mysql-bin
2016-07-07 13:18:23 15161 [Note] Starting crash recovery...
2016-07-07 13:18:23 15161 [Note] Crash recovery finished.
2016-07-07 13:18:23 15161 [Note] Server hostname (bind-address): '*'; port: 3306
2016-07-07 13:18:24 15161 [Note] IPv6 is not available.
2016-07-07 13:18:24 15161 [Note] - '0.0.0.0' resolves to '0.0.0.0';
2016-07-07 13:18:24 15161 [Note] Server socket created on IP: '0.0.0.0'.
2016-07-07 13:18:24 15161 [Note] Event Scheduler: Loaded 0 events
2016-07-07 13:18:24 15161 [Note] /usr/local/mysql/bin/mysqld: ready for connections.
Version: '5.6.23-log' socket: '/tmp/mysql.sock' port: 3306 Source distribution
160707 13:22:02 mysqld_safe Number of processes running now: 0
160707 13:22:02 mysqld_safe mysqld restarted
160707 13:22:04 mysqld_safe mysqld from pid file /usr/local/mysql/var/iZ94aqs6nntZ.pid ended