Mysql没有启动

时间:2013-12-21 15:12:43

标签: mysql

我试图重启mysql。但它没有重启。这是mysql.log的内容:

131217 17:01:09  InnoDB: Starting shutdown...
131217 17:01:11  InnoDB: Shutdown completed; log sequence number 153229469
131217 17:01:11 [Note] /usr/libexec/mysqld: Shutdown complete

131217 17:01:11 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
131217 17:01:11 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
131217 17:01:11 [Note] Plugin 'FEDERATED' is disabled.
131217 17:01:11 InnoDB: The InnoDB memory heap is disabled
131217 17:01:11 InnoDB: Mutexes and rw_locks use GCC atomic builtins
131217 17:01:11 InnoDB: Compressed tables use zlib 1.2.3
131217 17:01:11 InnoDB: Using Linux native AIO
^G/usr/libexec/mysqld: Can't create/write to file '/tmp/ibsMvrkL' (Errcode: 13)
131217 17:01:11  InnoDB: Error: unable to create temporary file; errno: 13
131217 17:01:11 [ERROR] Plugin 'InnoDB' init function returned error.
131217 17:01:11 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
131217 17:01:11 [ERROR] Unknown/unsupported storage engine: InnoDB
131217 17:01:11 [ERROR] Aborting

任何人都可以帮我找到原因吗?实际上mysql在这段时间之前就已经工作了,似乎这不是一个常规的错误!如果有任何其他信息,请告诉我。

非常感谢

2 个答案:

答案 0 :(得分:0)

您是否检查过磁盘分区是否存在问题?可能是它的空间不足或有问题。该错误清楚地表明问题是由创建临时文件失败引起的。列出休息是因为InnoDB无法初始化。

答案 1 :(得分:0)

此错误明确提到MySQL守护程序无法在/ tmp目录下创建临时文件。

请检查/ tmp目录的权限。

您的/ tmp目录权限应具有粘性。以下是相同的示例。

drwxrwxrwt   3 root root 4.0K Feb  4 13:48 tmp