1.
[root@mysql /]# service mysql restart ERROR! MySQL server PID file could not be found! Starting MySQL ERROR! Couldn't find MySQL server (/usr/share/mysql/bin/mysqld_safe)
解决方法:
[root@mysql /]# locate mysql.pid /var/lib/mysql/mysql.pid [root@mysql /]# ll /var/lib/mysql/mysql. mysql.err mysql.pid mysql.sock [root@mysql /]# ll /var/lib/mysql/mysql.pid -rw-rw---- 1 mysql mysql 5 Mar 14 17:52 /var/lib/mysql/mysql.pid [root@mysql /]# chmod 777 /var/lib/mysql/mysql.pid [root@mysql /]# ll /var/lib/mysql/mysql.pid -rwxrwxrwx 1 mysql mysql 5 Mar 14 17:52 /var/lib/mysql/mysql.pid [root@mysql /]# [root@mysql /]# [root@mysql /]# [root@mysql /]# service mysql restart Shutting down MySQL.. SUCCESS! Starting MySQL. SUCCESS!