gpt4 book ai didi

MYSQL 未启动 (InnoDB : Plugin initialization aborted with error Generic error)

转载 作者:行者123 更新时间:2023-12-02 19:19:00 24 4
gpt4 key购买 nike

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

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

  • 删除/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

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

最佳答案

对于不在XAMP中启动的MYSQL

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

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

就这些。

关于MYSQL 未启动 (InnoDB : Plugin initialization aborted with error Generic error),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/63305432/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com