靜態數據庫遷移

導出數據庫
#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;mysql

相關文章
相關標籤/搜索