mysql在服务器重启后,无法正常启动解决办法:
1.第一个是立即关机 使用命令 shutdown -h now 关机,关机后在硬启动,进程就停止了。
2.mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak改名备份后在执行:# service mysqld restart
mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak
mysql在服务器重启后,无法正常启动解决办法:
1.第一个是立即关机 使用命令 shutdown -h now 关机,关机后在硬启动,进程就停止了。
2.mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak改名备份后在执行:# service mysqld restart
mv /var/lib/mysql/mysql.sock /var/lib/mysql/mysql.sock.bak