【问题标题】:MYSQL not starting (InnoDB: Plugin initialization aborted with error Generic error)MYSQL 未启动(InnoDB:插件初始化因错误一般错误而中止)
【发布时间】:2022-11-27 22:17:22
【问题描述】:

我重新启动了我的服务器,因为它冻结了(可能是我迄今为止所做的最愚蠢的事情),然后出现了一些内部服务器错误。我很快发现mysql启动失败(service mysql status)。 我阅读了 mysql 错误日志(Pastebin)并开始谷歌搜索。

我正在使用 EditLine 包装器为 Linux (x86_64) 运行最新版本的 Ubuntu,mysql Ver 14.14 Distrib 5.7.31。 我尝试了什么:

  • 删除 /var/lib/mysql 中的两个 ib_logfile(备份后)
  • apt-get升级(我真的不知道为什么) - 检查 my.cf 是否有错误

这是我的 /var/log/mysql/error.log

2020-08-07T15:43:06.094116Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details).
2020-08-07T15:43:06.095903Z 0 [Note] /usr/sbin/mysqld (mysqld 5.7.31-0ubuntu0.18.04.1) starting as process 952 ...
2020-08-07T15:43:06.100450Z 0 [Note] InnoDB: PUNCH HOLE support available
2020-08-07T15:43:06.100482Z 0 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
2020-08-07T15:43:06.100489Z 0 [Note] InnoDB: Uses event mutexes
2020-08-07T15:43:06.100496Z 0 [Note] InnoDB: GCC builtin __atomic_thread_fence() is used for memory barrier
2020-08-07T15:43:06.100502Z 0 [Note] InnoDB: Compressed tables use zlib 1.2.11
2020-08-07T15:43:06.100508Z 0 [Note] InnoDB: Using Linux native AIO
2020-08-07T15:43:06.100771Z 0 [Note] InnoDB: Number of pools: 1
2020-08-07T15:43:06.100876Z 0 [Note] InnoDB: Using CPU crc32 instructions
2020-08-07T15:43:06.102827Z 0 [Note] InnoDB: Initializing buffer pool, total size = 128M, instances = 1, chunk size = 128M
2020-08-07T15:43:06.112754Z 0 [Note] InnoDB: Completed initialization of buffer pool
2020-08-07T15:43:06.114871Z 0 [Note] InnoDB: If the mysqld execution user is authorized, page cleaner thread priority can be changed. See the man page of setpriority().
2020-08-07T15:43:06.127135Z 0 [Note] InnoDB: Highest supported file format is Barracuda.
2020-08-07T15:43:06.128655Z 0 [Note] InnoDB: Log scan progressed past the checkpoint lsn 7945493345
2020-08-07T15:43:06.128723Z 0 [Note] InnoDB: Doing recovery: scanned up to log sequence number 7945545114
2020-08-07T15:43:06.130551Z 0 [ERROR] InnoDB: Ignoring the redo log due to missing MLOG_CHECKPOINT between the checkpoint 7945493345 and the end 7945545114.
2020-08-07T15:43:06.130573Z 0 [ERROR] InnoDB: Plugin initialization aborted with error Generic error
2020-08-07T15:43:06.732437Z 0 [ERROR] Plugin 'InnoDB' init function returned error.
2020-08-07T15:43:06.732470Z 0 [ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
2020-08-07T15:43:06.732482Z 0 [ERROR] Failed to initialize builtin plugins.
2020-08-07T15:43:06.732491Z 0 [ERROR] Aborting
 
2020-08-07T15:43:06.732526Z 0 [Note] Binlog end
2020-08-07T15:43:06.732586Z 0 [Note] Shutting down plugin 'CSV'
2020-08-07T15:43:06.732959Z 0 [Note] /usr/sbin/mysqld: Shutdown complete

如果您需要更多日志/信息,我会提供。 谢谢,我真的很绝望,我真的不想失去过去两年的生活。

【问题讨论】:

    标签: mysql innodb


    【解决方案1】:

    在删除 ib_logfile0、ib_logfile1 和 ibdata1 之前,我在 InnoDB recovery mod 4 中启动了 mysql 并登录到 phpmyadmin 以备份我所有的数据库。之后我删除了 ib 文件,清除了 mysql 和 phpmyadmin,重新安装它们,重新配置 mysql,登录到 phpmyadmin 并导入了我的数据库。

    【讨论】:

      【解决方案2】:

      对于不在 XAMPP 中启动的 MYSQL

      这是一个对我有用的好修复

      1. 导航到 /var/lib/mysql。
      2. 如果您看到类似 ib_logfile0 和 ib_logfile1 的日志文件,请重命名或 将它们移动到其他文件夹。
      3. 停止和启动 MySQL 服务。

        仅此而已。

      【讨论】:

      • OP 说他已经尝试删除日志文件。
      猜你喜欢
      • 2014-03-29
      • 1970-01-01
      • 2015-04-14
      • 2014-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-12-05
      • 1970-01-01
      相关资源
      最近更新 更多