赞
踩
工作原因需要在电脑部署两个mysql数据库。由于注册表混乱(大量中文注册表信息),导致两个mysql服务都无法启动。保存了一份data目录后,删除了mysql的注册表信息并重装了mysql。把data目录替换到重装的mysql的data目录后,启动mysql服务时出现这个错误(我的版本是mysql8)
如果出现本地计算机上的MySQL服务启动后停止的问题,可以去mysql安装目录的data文件夹下,以文本形式打开xxx.err文件,查看报错信息。
下面提供几种错误的解决方式
1.2024-05-23T02:36:30.685361Z 0 [Warning] [MY-010918] [Server] 'default_authentication_plugin' is deprecated and will be removed in a future release. Please use authentication_policy instead.
将my.ini下的这个参数修改为下面的配置
default_authentication_plugin=mysql_native_password
default_authentication_plugin=caching_sha2_password
2. Unsupported redo log format (v0). The redo log was created before MySQL 5.7.9
redolog文件版本不支持,删除ib_logfile0 和ib_logfile1,清空#innodb_redo
(不太建议这么做,清空redolog可能会导致故障数据无法回滚修复,希望有大佬给出更好的解决方案)
Copyright © 2003-2013 www.wpsshop.cn 版权所有,并保留所有权利。