Cloning a MySQL database

Cloning a MySQL database turns out to be quite straightforward.

mysqldump -u admin --password=mypass --lock-tables=false clone_db_name | mysql -u admin --password=mypass import_db_name

Comments are closed.