Re: Export A cluster and import it to mysql
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';
Subject
Views
Written By
Posted
2538
April 24, 2012 09:23AM
904
April 24, 2012 09:44AM
1102
April 24, 2012 09:56AM
926
April 25, 2012 02:40AM
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.