export the db1 to db1.sql edit the db1.sql, change the header eg. change from create db db1 if not existing db1; use db1; to create db db2 if not existing db2; use db2; step 3: import the data using normal way. e.g. mysql -u user1 -p db2 < db1.sql Done!
The reason for doing the work is to create something useful that helps people. Please click the ads if my articles are useful for you. Definitely, that's not enough. My target is working at some great organizations, such that one day, all the people with internet access can benefit from the service I contributed.