Jul 27, 2012, by admin
Multiple backups should be taken. E.g.
One copy on the same computer or locally networked computer that can be used to quickly replace a database that is in use.
Another copy in a physically different location in case something happens at the current location (fire, flood). This could be another computer at a remote site or some portable medium like a tape or CD.
If using Windows, open a command prompt window. If using Linux, execute the commands on the command line. The examples below are for Linux – convert backslashes and add .exe to the command for the Windows equivalents
Steps to backup and restore data in mysql database
1.To make a backup:
2.To repair a table:
3.If the repair doesn’t work, you may need to delete the table and restore from the backup file: