TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Ask HN: How to mitigate MySQL data corruption after upgrade?

4 点作者 chrishynes超过 2 年前
Ask HN: How to mitigate MySQL data corruption after upgrade? (BEWARE 8.0.31)<p>We got bitten by an upgrade MySQL 8.0.31: https:&#x2F;&#x2F;repost.aws&#x2F;questions&#x2F;QUZZaycd4OSY2k8iLNVFuXvA&#x2F;data-corruption-with-rds-my-sql-8-0-31 -- and that version is still live as of now, so beware.<p>MySQL 8.0.29 had issues so bad that it was pulled: https:&#x2F;&#x2F;dev.mysql.com&#x2F;doc&#x2F;relnotes&#x2F;mysql&#x2F;8.0&#x2F;en&#x2F;news-8-0-29.html<p>So multiple recent MySQL versions have had data corruption bugs that got through all of their validation, as well as validation that cloud providers such as AWS RDS do before providing it to upgrade.<p>The only solution to a corruption issue that gets through validation is bad, either: - Point In Time Recovery back to before the upgrade, which means an outage and loosing data since the upgrade - mysql_force_recovery, mysqldump, and build a new server in an older version<p>Is there any way to mitigate against a data corruption issue in the first place? My first thought would be to leave a read replica with the older version so it can be promoted in case the primary database crashes, but that&#x27;s noted as &quot;not supported&quot; by MySQL and RDS forces upgrading the replicas before the primary, so even though it might work, it&#x27;s not a solution on RDS.<p>Any other possibilities I&#x27;m not thinking of?

1 comment

Makiavel超过 2 年前
we use RDS Mysql with read replica and multi-az, we got bitten too with corruption problem on mysql 8.0.31 version...<p>In our case multi-az failover doesn&#x27;t work and our salvation was promote read replica as new master... the problem doesn&#x27;t replicate for the replica (i don&#x27;t know why) but if you try failover you lose your master because it stays in reboot status forever...<p>our solution was the same you told, downgrade to 8.0.28.<p>Anyone with same problem?