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

mftmpeh8  于 2021-06-25  发布在  Mysql
关注(0)|答案(1)|浏览(351)

我最近更新了位于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中的不推荐的配置,但是我不知道注解掉什么,所以我把它保持原样。
知道是什么原因吗?

nzk0hqpo

nzk0hqpo1#

如果您已经安装了mysql,并且没有使用 innodb_fast_shutdown 标志,只需转到您的mysql目录 /var/lib/mysql/ 并删除日志文件(在备份数据库之前,如果需要数据库中的表数据,请不要执行此操作):
ib_logfile0 ib_logfile1 如果你还需要的话,先把它们备份起来。

相关问题