Cloning a database

cwfie

Verified User
Joined
Aug 3, 2005
Messages
91
Dear Members,

I have a database which I want to clone under another name just for testing purposes.

For example: all .sql data from testuser_testdb needs to be transfered to testuser_testdb2

I tried mysqldump, but it seems to do nothing. I think (after searching the web) that it is because my database is too large (650 MB).

Does anyone know another solution than mysqldump? I didn't find anything so far.

I appreciate your help.

Best regards,
Steven
 
Create a user and do:

Code:
cp -Rp /var/lib/mysql/testuser_testdb /var/lib/mysql/testuser_testdb2
 
Last edited:
Thank you very much guys. Didn't know it could be done this easily.

Actually it was /home/mysql (debian) ;)
 
Back
Top