今晚看似无处不在,我的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服务器上。
有什么想法吗?我很感激帮助!
答案 0 :(得分:4)
AFAIK系统错误:2 =没有此类文件或目录。
检查目录是否存在,mysql是否有权写入该目录,以及磁盘上是否留有足够的空间。
答案 1 :(得分:4)
另一个考虑因素可能是确保用于mysql的tmpdir有足够的磁盘空间和所需的权限。
此外, 适用于Windows用户 :对于 tmpdir front slash (/)而不是back slash (\)
> 路径