Duplicate a MySQL Database
Duplicate a MySQL Database
Here is a simple script to duplicate a MySQL database:
mysqladmin create new_DB_name -u DB_user --password=DB_pass &&
mysqldump -u DB_user --password=DB_pass DB_name | mysql -u DB_user --password=DB_pass -h DB_host new_DB_name
download file now