/ Published in: Other
MySQL backup and restore example through mysqldump / mysql command line utilities.
Expand |
Embed | Plain Text
# Backup: mysqldump -u<usr> -p<pwd> <db> | gzip > <file> # Restore: gunzip <file> | mysql -u<usr> -p<pwd> <db>
Comments
Subscribe to comments
You need to login to post a comment.

# Restore using the SQL file:mysql -u -p <Ach, sorry. I'm not used to Markdown syntax. The above line should be:
mysql -uuser -ppassword databasename < file.sql