[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How can i duplocate a database???? i 've tried mysqldump can get it to work ANy ideas??


Try
mysqldump -u username -p --opt databasename > dumpfile.sql

to get it back into another mysql server you need to create the database you
want to put it in, and then
cat dumpfile.sql | mysql -u username -p databasename

Hope that helps.

ryan


----- Original Message -----
From: "Jorge Cordero" <jorge@xxxxxxxxxxxxx>
To: "mysql" <mysql@xxxxxxxxxxxxxxx>
Sent: Thursday, March 08, 2001 9:30 PM
Subject: How can i duplocate a database???? i 've tried mysqldump can get it
to work ANy ideas??


I am trying to make several copies of a database i have tried
 mysqldump -databasename can some one throw a piece of code please;

Thanks



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <mysql-thread67824@xxxxxxxxxxxxxxx>
To unsubscribe, e-mail <mysql-unsubscribe-treed=ultraviolet.org@xxxxxxxxxxxxxxx>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php



This mailing list archive is a service of Copilot Consulting.