Clone a DB
I have a 3 node galera cluster. I am wanting to make a copy of a DB. I have the mysqldump for DB_1, can I just create a new DB called DB_2 and dump my data into it. The dump file is ~23GB, will this cause a galera lock?
-
Hi Brandon,
You can create the dump and load it into the new database without a problem as long as you load the dump on one of the nodes and not to, let's say, a load balanced connection. In principle the Galera replication has a multitude of parallel slave threads (set by wsrep_slave_threads) so there will be no lock of it like you have with normal MySQL replication. Also don't forget to ensure there is no "use DB_1" at the beginning of the dump.
Best regards,
Art
Please sign in to leave a comment.
Comments
4 comments