1,导出数据
mysqldump -u root -p --default-character-set=utf8 dbname tablename > /opt/export.sql
2,导入数据
mysql -u root -p --default-character-set=utf8 dbname < /opt/export.sql
1,导出数据
mysqldump -u root -p --default-character-set=utf8 dbname tablename > /opt/export.sql
2,导入数据
mysql -u root -p --default-character-set=utf8 dbname < /opt/export.sql