mysql 备份和恢复数据库

备份

mysqldump -u user -p dbname > backup.sql

恢复

mysql -u user -p dbname < backup.sql

发表评论


*