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" <[EMAIL PROTECTED]>
To: "mysql" <[EMAIL PROTECTED]>
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 <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php