How To: Backup and Restore your MySQL Database(s)
It is fairly easy and (unfortunately) common that something will eventually happen to our data. Whether it is a mistake you make by deleting some (or all) of your data, a hacker gains control of your system or your server hard drive dies and all the data with it, you should be concerned with data integrity. Without proper backups, you could lose some or all of your data which equates to your time being wasted from all the effort you put into the lost data.
Fortunately, MySQL makes it easy for an admin to backup databases. mysqldump is a utility that comes with MySQL specifically for “dump” databases to a file. Here is how it works:
Replace all of the values in brackets [] with your values. There is no space between -p and [password].
Specific Tables:
All Databases
Multiple Databases
Restoring from a MySQL Backup
Restoring a MySQL dump file is just as easy and dumping the data to a SQL file. You use MySQL command line to do it. You could also restore these dump files via a GUI such as phpMyAdmin (import/export).
Restoring Specific Tables
Restoring All Database Dump
Restoring Multiple Database Dump
Possibly related posts: (automatically generated)
Related posts on backup
How To Burn Wii Games – How To Backup Wii Games Easily | How to …
How To Choose The Best On Line Back Up Provider « Step by Step to …
Social Links
Thank you for taking the time to read this post. We hope you've enjoyed the
content here. Please feel free to use the links below to share this post with others.