mysql - 启动 MySQL 时出现错误 "Plugin ' InnoDB 注册为存储引擎失败”

标签 mysql ubuntu innodb mariadb-10.3

我在 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 stopsudo service mysql start
  • 停止和启动 MySQL 服务

我希望这会有所帮助。谢谢

关于mysql - 启动 MySQL 时出现错误 "Plugin ' InnoDB 注册为存储引擎失败”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26439742/

相关文章:

mysql - 'on clause' 中的未知列

PHP 在单个结果时显示字符串的第一个字符,但在多个结果时显示完整字符串

linux - 在 Ubuntu 13.04 (-g) 上查找 node_modules

string - 用于选择具有最新日期且不带子字符串的文件名的 Bash 脚本

mysql - TINYTEXT、TEXT、MEDIUMTEXT 和 LONGTEXT 最大存储大小

mysql - Codeigniter 模型,根据 table1 从 2 个表中获取值。如果在 table2 上找不到值,则值返回 null

php 单选值不会更新列

mysql - 在 Ubuntu linux 上构建 C 项目出现错误 'mysql/mysql.h no such file'

mysql - HSQLDialect 到 MySQL5InnoDBDialect、Hibernate

mysql - 无法启动mysqld,不支持InnoDB引擎