今天晚上,我的wordpress网站突然瘫痪,我将其归因于mysql的问题。Mysql不会在服务器上启动,因为它总是失败。
这是我从日志中得到的:
140226 08:54:11 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
140226 08:58:20 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
140226 8:58:20 [Note] Plugin 'FEDERATED' is disabled.
140226 8:58:20 InnoDB: The InnoDB memory heap is disabled
140226 8:58:20 InnoDB: Mutexes and rw_locks use GCC atomic builtins
140226 8:58:20 InnoDB: Compressed tables use zlib 1.2.3
140226 8:58:20 InnoDB: Using Linux native AIO
/usr/libexec/mysqld: Can't create/write to file '/dev/shm/mysql/ibOqUOjF' (Errcode: 2)
140226 8:58:20 InnoDB: Error: unable to create temporary file; errno: 2
140226 8:58:20 [ERROR] Plugin 'InnoDB' init function returned error.
140226 8:58:20 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
140226 8:58:20 [ERROR] Unknown/unsupported storage engine: InnoDB
140226 8:58:20 [ERROR] Aborting我试过在Googling上搜索和查看Stack Overflow,但我似乎找不到很多解决方案,除了删除ipdata1和日志文件之外,正如我所读到的,不应该对存储的数据进行删除,因为它会弄乱我的表。
这是在NGINX CentOS 6服务器上。
有什么想法吗?非常感谢你的帮助!
发布于 2014-02-26 17:44:08
AFAIK系统错误:2=无此类文件或目录。
检查目录是否存在,mysql是否有权限写入该目录,以及磁盘上是否有足够的剩余空间。
发布于 2014-10-07 17:24:09
另一个考虑事项可能是确保用于mysql的tmpdir具有足够的磁盘空间和所需的权限。
此外,windows用户的:考虑使用front slash (/)作为tmpdir路径的back slash (\)
https://stackoverflow.com/questions/22036724
复制相似问题