So, in my dev environment I have 1 server to represent a
particular cluster. I need to change the code to represent that a
single table has been moved a new cluster. So, since I have one
server I create a new database and put the table there.
Steps
get a snapshot of a table. I could use innodb-backup, but the
table is not in it's own table space yet so I need to take a
snapshot of it via mysqldump
mysqldump -uroot DATABASE TABLE --single-transaction > file.sql
Now I add the contents of file.sql to the new database and rename
the old table to oldtable_bu
Okay now dev is working but production it's a bit different. I'm
building new clusters out of an old single cluster. My goal is to
switch writing to the old cluster that has the old database name
to the new cluster that has the new database name without
downtime.
…