I don't think you can do it directly however if you do not want to change the dump file and change the table names you can follow the following steps
- Tables which needs to be imported into the new db, create a copy of
the same table with the new name in old db and copy the data in it.
- Export each table and then import them to the new DB.
Here is an example
mysql> select * from table1 ;
+------+------+
| t1id | name |
+------+------+
| 1 | aa |
| 2 | cc |
| 3 | dd |
| 4 | ee |
| 5 | ff |
| 6 | bb |
| 7 | gg |
+------+------+
7 rows in set (0.00 sec)
mysql> create table table1_copy like table1 ;
Query OK, 0 rows affected (0.12 sec)
mysql> insert into table1_copy select * from table1 ;
Query OK, 7 rows affected (0.07 sec)
Records: 7 Duplicates: 0 Warnings: 0
mysql> select * from table1_copy ;
+------+------+
| t1id | name |
+------+------+
| 1 | aa |
| 2 | cc |
| 3 | dd |
| 4 | ee |
| 5 | ff |
| 6 | bb |
| 7 | gg |
+------+------+
7 rows in set (0.00 sec)
Then you can export each table as
mysqldump -u username -p dbname table1_copy > table1_copy.sql
Import the new table as
mysql -u username -p < table1_copy.sql
And finally delete the temp tables created on the old db.
Or export eveything, and rename the tables.