I am doing a migration of my database from one server (RDS) to another (localhost) via the MySQL workbench tool. I want to know if during this process my database will be locked for write and read operations? The type of my tables is InnoDB.
Mysql – Does MySQL Workbench lock database during migration process
innodbmigrationMySQLmysql-workbench
Related Question
- Mysql – thesql workbench migration changed the database. Can I trust it
- MySQL Front – Workbench
- Sql-server – UTF8 Trouble while migrating from MSSQL to MySQL with MySQL Workbench
- Sql-server – Problems during migration from SQL Server to MySQL via MySQL Workbench
- Mysql – Obfuscate data during migration with MySQL Workbench
- Sql-server – disable log during migration
Best Answer
EDIT:
I guess I deserved the -1 for my brevity and incomplete (i.e. wrong) answer. I was on the phone and had to keep it quick.
Let me try again.
I did a dry run for you on two test servers using the MySQL Workbench 6.3 CE migration wizard.
With the default options the migration is -non- locking. This vanilla method has a downside however. If you migrate while other DML transactions are going on, you might get an inconsistent data set on the destination, as it will not migrate a consistent snapshot as seen in the statement below. This risk is designed to achieve the non locking nature.
Here is an excerpt of the general log for the vanilla run:
Another option would be to use mysqldump. This will be -non- locking but, also create a consistent snapshop of the database.