HowTo Clone MySQL database

For cloning Mysql database just run:

shell> mysqldump db1 > dump.sql shell> mysqladmin create db2 shell> mysql db2 < dump.sql