服务器导入导出数据

从服务器中的数据库导出数据

mysqldump -u用户名 -p 数据库名 > 数据库名.sql

导入服务器中的数据

mysql -uroot -D数据库名

猜你喜欢

转载自www.cnblogs.com/demiao/p/12722614.html