导出查询结果: mysql -uroot -ppass -e"SELECT * from ..." database > /home/li/out.sql 导入查询结果: mysql --local-infile -uroot -p mysql> use database; mysql> load data local infile "/home/li/out.sql" into table tablename;
导出查询结果: mysql -uroot -ppass -e"SELECT * from ..." database > /home/li/out.sql 导入查询结果: mysql --local-infile -uroot -p mysql> use database; mysql> load data local infile "/home/li/out.sql" into table tablename;