How to copy database1to database2mysql from the command line?
I know that mysqldumpis one option, or I can do
drop table if exists table2;
create table table2 like table1;
insert into table2 select * from table1;
But I will not do it manually for each table name. Is it possible?
The key here is "from mysql command line"
mysql> ...
source
share