MySQL Forums
Forum List  »  NDB clusters

Re: Export A cluster and import it to mysql
Posted by: David Ashman
Date: April 27, 2012 10:16AM

We still use this method and it works fine.

The two steps from the post that you should be interested in are:


Convert Cluster backup data files to CSV files
For each backup file (for each data node in the master cluster) run:
ndb_restore -c <connectstring>
-b <backupid>
-n <nodeid>
--print-data
--print-log
--append
--tab=<output directory>
--fields-enclosed-by="'"
--fields-separated-by=","
--lines-terminated-by="\n"

Loading the .txt (CSV) into Slave
For all tables:
mysql_slave> LOAD DATA INFILE 'tablename.TXT'
INTO table <tablename>
FIELDS TERMINATED BY ','
ENCLOSED BY '\''
LINES TERMINATED BY '\n';

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: Export A cluster and import it to mysql
988
April 27, 2012 10:16AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.