Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

备份恢复恢复容器运行报错 #38

Open
topkj opened this issue Jun 18, 2024 · 3 comments
Open

备份恢复恢复容器运行报错 #38

topkj opened this issue Jun 18, 2024 · 3 comments

Comments

@topkj
Copy link

topkj commented Jun 18, 2024

polardbx-engine:v2.4.0_8.4.19
恢复容器同步数据文件成功,调用启动命令时报错
image

@sWildGold
Copy link
Contributor

请贴一下mysqld的err log,另外,我们支持的备份工具是https://github.com/polardb/polardbx-backup

@topkj
Copy link
Author

topkj commented Jun 20, 2024

image

@sWildGold
Copy link
Contributor

sWildGold commented Jun 20, 2024

这个看起来是当时备份的时候polardbx是低版本,基于mysql8018的,现在最新版本是基于8032,相当于升级启动了。
解决方法:
首先,确认下当时备份时,mysqld是处于normal shutdown的状态https://dev.mysql.com/doc/refman/8.0/en/upgrade-binary-package.html 。如果不能保证这一点,则需要使用对应老版本polarx来启动。
确认normal shutdown后,将err log里的#innodb_redo文件夹清空,再用新版本启动
也可以无脑删#innodb_redo文件夹,只是这样就不能保证不丢数据了

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants