Quick copy of data from one db to another on linux

Written by: daniel

Date September 18, 2008

mysqldump -u user1 -p -h host1 sourcedatabase | mysql -u user2 -p -h host2 -D destinationdatabase

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>