1.导出
linux命令行(abc是数据库名字):
mysqldump -uroot -p abc > /home/abc.sql
2.导入:
进入数据库内:
use abc;
source /home/abc.sql;