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

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

android - Associate same looper with different threads -

visual studio 2010 - Connect to informix database windows form application -