1、数据库备份 mysqldump -u root -p db_name > db_name.sql
2、数据库导入 mysql -u root -p create database db_name use db_name; source db_name.sql;
1、数据库备份 mysqldump -u root -p db_name > db_name.sql
2、数据库导入 mysql -u root -p create database db_name use db_name; source db_name.sql;
转载于:https://my.oschina.net/u/2370328/blog/690955