我在 Stackoverflow 上发现了许多类似的问题,但没有得到确切的错误解决方案。 我的问题是在一台 Dedicated Centos 6.5 机器上启动 MySQL 服务时,出现错误:
141018 05:13:46 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
141018 5:13:47 [Warning] Can't create test file /var/lib/mysql/ip-184-168-73-83.lower-test
141018 5:13:47 [Warning] Can't create test file /var/lib/mysql/ip-184-168-73-83.lower-test
/usr/libexec/mysqld: Can't create/write to file '/tmp/ibkTWnhE' (Errcode: 28)
141018 5:13:48 InnoDB: Error: unable to create temporary file; errno: 28
141018 5:13:48 [ERROR] Plugin 'InnoDB' init function returned error.
141018 5:13:48 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
141018 5:13:48 [ERROR] Can't start server : Bind on unix socket: No space left on device
141018 5:13:48 [ERROR] Do you already have another mysqld server running on socket: /var/lib/mysql/mysql.sock ?
141018 5:13:48 [ERROR] Aborting
141018 5:13:48 [Note] /usr/libexec/mysqld: Shutdown complete
141018 05:13:48 mysqld_safe mysqld from pid file /var/run/mysqld/mysqld.pid ended
以下是免费命令状态: 免费-m
total used free shared buffers cached
Mem: 3743 3631 111 0 2705 21
-/+ buffers/cache: 905 2838
Swap: 2047 0 2047
最佳答案
我通过以下方式解决了这个问题:
- 通过 SSH 以 root 访问权限登录服务器。
- 导航到/var/lib/mysql。
- 如果您看到诸如 ib_logfile0 和 ib_logfile1 之类的日志文件,请将它们重命名或移动到其他文件夹。
- 通过运行
sudo service mysql stop
和sudo service mysql start
停止和启动 MySQL 服务
我希望这会有所帮助。谢谢
关于mysql - 启动 MySQL 时出现错误 "Plugin ' InnoDB 注册为存储引擎失败”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26439742/