migrate database schema and data from RDS Mysql 5.7 to Mysql 8.0

0

When I migrate data from RDS Mysql 5.7 to RDS Mysql 8.0, the auto_increment and restet the auto_increment are missing in the new RDS Mysql 8.0. Do you have a solution for this case?

  • Can you claify you are Migrating data vs upgrading your RDS instance from 5.7 to 8? How have you been migrating the data so far if thats the case?

  • I do both. I migrate data from RDS 5.7 to another RDS 8.0.. I migrated the data using DMS and the auto_incremenet isn't migrated.

已提問 9 個月前檢視次數 1389 次
2 個答案
0

Hi,

Thank you for asking your question.

DMS has limitation on auto_increment as described in the document.

The AUTO_INCREMENT attribute on a column isn't migrated to a target database column.

To upgrade to RDS MySQL8.0 from RDS MySQL5.7, we have several option, in-place[1], snapshot/restore, and Amazon RDS Blue/Green Deployments[2].

For more information, please see AWS database blog Best practices for using a MySQL read replica to upgrade an Amazon RDS for MySQL database

[1] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/USER_UpgradeDBInstance.MySQL.html#USER_UpgradeDBInstance.MySQL.Major / https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/MySQL.Procedural.Importing.External.Repl.html

[2] https://docs.aws.amazon.com/AmazonRDS/latest/UserGuide/blue-green-deployments-overview.html

I hope this might help.

AWS
已回答 9 個月前
0

Hi, I'd suggest to use AWS DMS with MySQL as source: see https://docs.aws.amazon.com/dms/latest/userguide/CHAP_Source.MySQL.html

DMS will provide you with lots of flexibility in this migration via transformation rules, etc.
Also, if you use its CDC feature, you can create the new version in parallel of the current one and get it updated in quasi real-time to see how it behaves.

See https://aws.amazon.com/dms/features/ for all available features

Best,

Didier

profile pictureAWS
專家
已回答 9 個月前
  • I already tried DMS as my first solution but after using it, I find that the auto_increment and restet the auto_increment are missing from the tables.

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南