MYSQL 8.0 - 不支持的重做日志格式

2022-08-30 14:51:47

我最近更新了位于我的xampp文件夹下的mysql,并且我遇到了以下错误,从日志文件中报告:

2018-04-19T12:59:19.667059Z 0 [System] [MY-010116] [Server] C:\xampp\mysql\bin\mysqld.exe (mysqld 8.0.11) starting as process 9324
2018-04-19T12:59:20.025280Z 1 [ERROR] [MY-013090] [InnoDB] InnoDB: Unsupported redo log format (0). The redo log was created before MySQL 5.7.9
2018-04-19T12:59:20.026140Z 1 [ERROR] [MY-012930] [InnoDB] InnoDB: Plugin initialization aborted with error Generic error.
2018-04-19T12:59:20.229069Z 1 [ERROR] [MY-011013] [Server] Failed to initialize DD Storage Engine.
2018-04-19T12:59:20.230803Z 0 [ERROR] [MY-010020] [Server] Data Dictionary initialization failed.
2018-04-19T12:59:20.231371Z 0 [ERROR] [MY-010119] [Server] Aborting
2018-04-19T12:59:20.233136Z 0 [System] [MY-010910] [Server] C:\xampp\mysql\bin\mysqld.exe: Shutdown complete (mysqld 8.0.11)  MySQL Community Server - GPL.

我被告知,如果更新你的mysql,你应该注释掉位于你的my.ini中不推荐使用的配置,但我不知道要注释掉什么,所以我把它留了下来。

任何想法是什么原因造成的?


答案 1

如果您已经安装了MySQL并且没有使用

innodb_fast_shutdown

标志,只需转到您的MySQL目录

/var/lib/mysql/

并删除日志文件(如果在备份数据库之前需要数据库中的表数据,请不要执行此操作):

ib_logfile0 ib_logfile1

如果您再次需要它们,请先备份它们。


答案 2

Mac OS X Users

ib_logfiles都在这里

rm /usr/local/var/mysql/ib_logfile*

推荐