mysql - Need insight into script to copy InnoDB tables to another database -
i have mysql database innodb tables need copy newly created database. automate copying process script since there on 100 tables.
this current code. after 10 tables, it's getting tiresome:
> use newdb; > create table tablea old_db.tablea > insert tablea select * old_db.tablea
how can extract table names old_db
in order automate process?
use mysqlworkbench export schema , data source database , import new database.
Comments
Post a Comment