MySQL Forums
Forum List  »  Backup

Re: Moving dbs to new server
Posted by: Rick James
Date: April 03, 2012 09:15AM

> The partition layout is different on the machines.
Elaborate.
In particular, if files are symbolically linked, then the table is ALTERed, the links may be lost and the table will move to a different location.

> Would stopping mysql as you indicated have prevented this?
A graceful stop should not do any harm. kill -9 can do other forms of damage.

chown (and maybe chmod) is needed after certain flavors of machine-to-machine copies. Also it depends on who you are when you tar/untar (or zip/unzip). I would use scp or netcat (nc), as root, to copy the files and not lose the ownership and permissions. tar/zip are not necessarily of much benefit if the machines are on a gigabit ethernet.

Oh, if the number associated with 'user' mysql is different on the two machine, that could have caused the trouble. (Unix utilities send only the number, not the name, I think.)

3 hours for copy; 36 hours for mysqldump. -- In the former case, the indexes were copied; in the latter they had to be rebuilt.

Options: ReplyQuote


Subject
Views
Written By
Posted
3034
March 31, 2012 05:25PM
1387
April 01, 2012 11:32PM
1394
April 02, 2012 08:32AM
Re: Moving dbs to new server
1433
April 03, 2012 09:15AM
1695
April 03, 2012 12:17PM
1356
April 04, 2012 09:00AM
1306
April 05, 2012 02:25PM


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.