现象:
由于mysql.sock文件误删,重启mysql后一直打印以下信息,无限重启:
121030 11:03:20 mysqld_safe Number of processes running now: 0
121030 11:03:20 mysqld_safe mysqld restarted
121030 11:03:21 mysqld_safe Number of processes running now: 0
121030 11:03:21 mysqld_safe mysqld restarted
121030 11:03:23 mysqld_safe Number of processes running now: 0
121030 11:03:23 mysqld_safe mysqld restarted
121030 11:03:24 mysqld_safe Number of processes running now: 0
121030 11:03:24 mysqld_safe mysqld restarted
查看/tmp文件夹中mysql.sock文件,一会有一会没有
原因:
由于磁盘空间不足,导致创建mysql.sock文件创建不成功,所以一直在重启。
清理下磁盘空间,最终Mysql正常启动成功。