Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Before migrating a MySQL database to AWS Relational Database Service, be sure to understand the impact of that move if any tables in your MySQL database utilize the MyISAM engine. Specifically AWS repeats this warning in many places:

...

...

3. Try to ensure that you get good snapshots.

AWS outlines the following process to endeavour to get good snapshots, if your MySQL RDS DB has MyISAM tables.

  1. Stop all activity to your MyISAM tables (that is, close all sessions). You can close all sessions by calling the mysql.rds_kill command for each process that is returned from a MySQL SHOW FULL PROCESSLIST command.

  2. Lock and flush each of your MyISAM tables. For example, the following commands lock and flush two tables named myisam_table1 and myisam_table2:
    • FLUSH TABLES myisam_table, myisam_table2 WITH READ LOCK;
  3. Create a snapshot of the RDS instance.
  4. Release the locks on the tables.
    • UNLOCK TABLES;

Resources