Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copying database 1

Status
Not open for further replies.

GONDA2000

Technical User
Feb 21, 2002
1
US
I have dedicated unix server runing my website with MySQL database. I'm new to MySql and need help.
:cool: PROBLEM
I need create 2 databases with same content but difrent names. One database already exist. How do I create and copy existing database to the new? Both db's will be on the same server.

Thank you for any help.
 
You can try to dump your database
Mysql dumps databases in SQL query files, you can then search/replace the 1st dbasename by the second one in the queries
Finally, execute the SQL script. Did u get it ? sorry for not giving details
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top