MySQL的備份及還原:使用mysqldump及gzip
Backup:
mysqldump [database_name]
Restore:
gunzip backup.sql.gz
mysql [database_name] -u root -p < backup.sql
Backup:
mysqldump [database_name]
Restore:
gunzip backup.sql.gz
mysql [database_name] -u root -p < backup.sql