静态数据库迁移

导出数据库
#mysqldump -u root -h localhost -p -r /tmp/mysql-data.txt -B authpuppy
导入数据库
#mysql -u root -p
mysql>source /tmp/mysql-data.txt
mysql>create user 'authpuppy'@'localhost' identified by 'authpuppydev';
mysql>grant all privileges on authpuppy.* to 'authpuppy'@'localhost' with grant option;

原文地址:https://www.cnblogs.com/MarkGrid/p/4137324.html