| xawk.com - technical wisdom served up in little slices | xawk.com -- Tags -- MySql |
| ||||||||
xawk.com -- Tags -- MySql -- Restore your Database from a Backup
Restore your Database from a Backup
Restore your Database from a Backup
Some time ago, I did an short article on using MYSQLDUMP and CRON to backup databases. Database backups are a good thing to have, but unfortunately someday you might just need do a restore from those backups. Do You Know How? The backups you created using the mysqldump utility earlier simply generate a text file full of SQL commands. For example:
It becomes a simple matter of running MySQL from the terminal session command line and piping the SQL commands into it to recreate the database.
For example:
Test Your Backups Quoting those words from The Hitchhiker's Guide to the Galaxy -- Don't Panic. It is a good idea to try a restore on a test database sometime long before you actually need to do one for real. Tags: MySql Share: Del.icio.us | Digg | Facebook | Google Bookmarks | Reddit | Technorati | Windows Live | Yahoo! My Web
|
|