我执行了 apt-get update 并在运行 10.04LTS 的服务器上安装了一些更新。但这破坏了 mysql。它不会在启动时启动。我尝试使用以下命令手动启动它:
$ sudo /etc/init.d/mysql restart
Rather than invoking init scripts through /etc/init.d, use the service(8)
utility, e.g. service mysql restart
Since the script you are attempting to invoke has been converted to an
Upstart job, you may also use the restart(8) utility, e.g. restart mysql
start: Job failed to start
$ sudo service mysql start
start: Job failed to start
$ service mysql start
start: Rejected send message, 1 matched rules; type="method_call", sender=":1.5" (uid=1001 pid=1796 comm="start) interface="com.ubuntu.Upstart0_6.Job" member="Start" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="init"))
$ restart mysql
restart: Rejected send message, 1 matched rules; type="method_call", sender=":1.10" (uid=1001 pid=2014 comm="restart) interface="com.ubuntu.Upstart0_6.Job" member="Restart" error name="(unset)" requested_reply=0 destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="init"))
这是我的服务的 /etc/init/mysql.conf 文件,mysql 错误日志&/etc/mysql/my.cnf。目前,我只运行了sudo mysqld &
一次,我的服务器开始接受连接,但它会导致问题,因为每次重启后都必须执行此操作。
请告诉我如何解决这个问题。
答案1
看起来你的磁盘已经满了?
120507 21:12:06 [ERROR] /usr/sbin/mysqld: Disk is full writing './gaurishs_gslive/wp_redirection_logs.MYD' (Errcode: 122). Waiting for someone to free space... (Expect up to 60 secs delay for server to continue after freeing disk space)
尽管如此,该服务肯定会启动;但是,您的启动可能会失败,因为该服务已经在运行。