mysqldump导出

mysqldump -u user -p dbname table1 table2 > db.sql

mysql执行sql

mysql –uroot –p -Dtest < 1.sql

原文地址:https://www.cnblogs.com/guochunyi/p/6248570.html