简体   繁体   中英

How to migrate from MySQL to Galera Cluster

I have a MySQL database with some data in it. Now I want to create cluster from this this database.

I've already configured Galera, and I have just this single node. Now, how to replicate the data to ather nodes?

Will it happen auto-maicaly by Galera, or should I dump current data first, then clean the DB on the first node, start all other nodes and load the data to one of them and wait for them to replicate.

Following question is: how to add/remove nodes in runtime?

Just if somebody is still interested in an answer to this.

The procedure is:

  • bootstrap the cluster by starting the first node
  • add other nodes as needed

Any new nodes will first receive the current state of the DB before becoming available.

https://mariadb.com/kb/en/mariadb/getting-started-with-mariadb-galera-cluster/#getting-started

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM