我正在运行 Ubuntu 10.10,mysql 服务器每 30 秒左右不断重启一次。如果我 tail /var/log/syslog,我会得到以下信息:
Jul 26 11:41:57 ubuntu init: mysql post-start process (7981) terminated with status 1
Jul 26 11:41:57 ubuntu kernel: [ 3088.091492] type=1505 audit(1311676917.680:96): operation="profile_replace" pid=8055 name="/usr/sbin/mysqld"
Jul 26 11:41:59 ubuntu init: mysql main process (8059) terminated with status 7
Jul 26 11:41:59 ubuntu init: mysql main process ended, respawning
Jul 26 11:42:27 ubuntu init: mysql post-start process (8060) terminated with status 1
Jul 26 11:42:27 ubuntu kernel: [ 3118.264831] type=1505 audit(1311676947.850:97): operation="profile_replace" pid=8133 name="/usr/sbin/mysqld"
Jul 26 11:42:29 ubuntu init: mysql main process (8137) terminated with status 7
Jul 26 11:42:29 ubuntu init: mysql main process ended, respawning
Jul 26 11:42:57 ubuntu init: mysql post-start process (8138) terminated with status 1
Jul 26 11:42:58 ubuntu kernel: [ 3148.443293] type=1505 audit(1311676978.030:98): operation="profile_replace" pid=8211 name="/usr/sbin/mysqld"
Jul 26 11:42:59 ubuntu init: mysql main process (8215) terminated with status 7
Jul 26 11:42:59 ubuntu init: mysql main process ended, respawning
我无法手动启动它,如果我尝试这样做,它就会挂起。
有任何想法吗?
答案1
@Darhazer 感谢您的评论,我检查了日志,发现 my.cnf 文件中的 protocol=tcp 使文件无效。再次感谢!