前言:由于需升级mysql版本(从8.0.28 -> 8.0.33(最新版)),在同一台服务器中将8.0.33版本数据库安装完成后,将原数据库(8.0.28)中的data目录整个复制到8.0.33版本中。启动新版的mysql后报错服务器无法启动,查看错误日志文件data/LLC-597101-W19-.err
错误描述:
2023-06-07T02:54:31.452741Z 1 [ERROR] [MY-012526] [InnoDB] Upgrade is not supported after a crash or shutdown with innodb_fast_shutdown = 2. This redo log was created with MySQL 8.0.28, and it appears logically non empty. Please follow the instructions at http://dev.mysql.com/doc/refman/8.0/en/upgrading.html
原因:ib_logfile 文件冲突引起的
解决方法:
进入data目录下将ib_logfile0、ib_logfile1…文件删除即可