错误/ usr / libexec / mysqld:写入文件'/var/run/mysqld/mysqld.pid时出错(错误代码:28)

时间:2012-07-14 07:19:57

标签: mysql linux

目前我在Linux Centos上遇到mysql问题。它突然停了下来。  那么我试着用 service mysqld start 命令启动mysql,它给出了错误 -

尝试启动MySQL守护进程时发生超时错误。

我使用 tail -10 /var/log/mysqld.log 命令检查了日志,然后显示 -

120714  6:48:02  InnoDB: Initializing buffer pool, size = 8.0M
120714  6:48:02  InnoDB: Completed initialization of buffer pool
120714  6:48:02  InnoDB: Started; log sequence number 0 2096665
120714  6:48:02 [ERROR] /usr/libexec/mysqld: Error writing file '/var/run/mysqld/mysqld.pid' (Errcode: 28)
120714  6:48:02 [ERROR] Can't start server: can't create PID file: No space left on device
120714 06:48:02 mysqld_safe Number of processes running now: 0
120714 06:48:02 mysqld_safe mysqld restarted
120714  6:48:03 [Note] Plugin 'ndbcluster' is disabled.
120714  6:48:03  InnoDB: Initializing buffer pool, size = 8.0M
120714  6:48:03  InnoDB: Completed initialization of b-bash-4.1

我不明白为什么会这样。我是Linux和mysql的新手。 请各位帮我解决这个问题。 谢谢

1 个答案:

答案 0 :(得分:3)

键入“df -h”以查看/ var / mount点上剩余多少空间,可能是/ var /中没有剩余空间?