I am using mysqldump to move my database to another sever. But database has tables with million of rows and mysql restore takes too long(4 houres).
is there any way I do this faster?
I am using mysqldump to move my database to another sever. But database has
Share
Here’s the way I have done this in the past using mysql replication
Dump SQL on source machine with binary logging turned on (use the
--master-dataoption) this will give you data at that point in time and allow you to import the data on your new server while new data is being populated on the old server.after the import (4 hours you said?) then you can
START SLAVEon the new server and the new server will replay the binary logs and catch up to the old server and keep in sync until the actual switchover happens.How to setup mysql replication