服务mysql在ubuntu上启动失败

时间:2011-12-08 20:57:25

标签: mysql ubuntu service mysql5

这是我的困境(某种程度上与this resource类似,我尝试了一切,但没有任何帮助):

root@vuxomys01:~# service mysql status
mysql start/running

当我在寻找这个过程时:

root@vuxomys01:~# ps ax | grep mysql
2263 pts/0    S+     0:00 grep --color=auto mysql

我检查了日志,/var/log/mysql/error.log为空,但/var/log/syslog中有奇怪的内容......

root@vuxomys01:~# grep mysql /var/log/syslog
...
Dec  8 15:24:17 vuxomys01 init: mysql post-start process (1963) terminated with status 1
Dec  8 15:24:17 vuxomys01 kernel: [  460.182640] type=1505 audit(1323375857.580:28):  operation="profile_replace" pid=2098 name="/usr/sbin/mysqld"
Dec  8 15:24:17 vuxomys01 init: mysql main process (2102) terminated with status 1
Dec  8 15:24:17 vuxomys01 init: mysql main process ended, respawning
Dec  8 15:24:47 vuxomys01 init: mysql post-start process (2103) terminated with status 1

...和/var/log/daemon.log

root@vuxomys01:~# grep mysql /var/log/daemon.log
...
Dec  8 15:24:17 vuxomys01 init: mysql post-start process (1963) terminated with status 1
Dec  8 15:24:17 vuxomys01 init: mysql main process (2102) terminated with status 1
Dec  8 15:24:17 vuxomys01 init: mysql main process ended, respawning
Dec  8 15:24:47 vuxomys01 init: mysql post-start process (2103) terminated with status 1

任何其他想法都会非常感激。提前谢谢!

  • 尤金。

1 个答案:

答案 0 :(得分:1)

我认为由于MySQL的迁移不完整,你在启动后脚本中有一个无限循环。检查这个thread,我确定解决方案就在那里。