Home Print  

Restore MySQL database[For Windows]

Related Links
Restore MySQL database [For Linux/FreeBSD]

Overview

Restoring a database is sometimes necessary when a database becomes corrupt. You can restore your MySQL Server databases using your most recent full backup. This section gives you information on how to restore MySQL Server database using in Windows.

Restore MySQL database[For Windows]

Restoring MySQL databases in Windows require a couple of extra steps. Please follow the instructions detailed below in sequential order.

  1. Follow the steps for a regular restore operation and restore the required database backup files.
  2. Once restored, the required files are now in their designated locations:
    <Restore Path>\<Temp_Dump_Location>\<Backup_Name>\<Database_Name>\<Restore_File_Name>
    The restored MySQL database files end with an extension ".sql". In order to use the restored database, please follow the steps given below:
    1. If the restoring database is unavailable in MySQL Server, create the database using the command "CREATE DATABASE <DB_NAME>".
    2. Reload the database with the data using mysql -u [username] -p[password] [<DB_NAME>] < [<Restore Path>\<Dump_Location>\<Backup_Name>\<Database_Name>\<Database_Name>.sql]. This will dump the sql back to the database.

Troubleshooting Tips

Limitations

Print  
Technical support-