I was able to recover the database folder of MySQL server 5.5 of the corrupted operating system (Windows XP) at
C:\\Documents and Settings\\All Users\\Applica
@JohnWoo's answer is only for MYSIAM
database engine. My answer is strictly for InnoDb storage engine,i.e., FRM
and IBD
files
InnoDb
database, I followed exactly these steps successfully. Before pointing out the steps, I would like to tell you that I performed the recovery from recovered hard disk of Wndows XP and transferred it to Windows 7. So, this will help both windows xp and windows 7 users. So, the steps which I followed are :-
I would recommend you to have a look at the cold backup method for InnoDB at the mysql docs at dev.mysql.com/doc/mysql-backup-excerpt/5.5/en/innodb-backup.html
I think MySQL's file management is pretty simple by default. Create a simple new database, and copy the recovered files into the mysql subfolder which is created in response, replacing any created database files. If that doesn't work, create a table in the new database to get a hint of what else might be needed.
Ok, I got the answer to my own problem.
Possible Scenario
For your information, in MYSQL, files with the extension MYD
is the table data, FRM
files is the table definition and MYI
file is the table indices. There is also the ibdata
file specified in the my.ini which is the InnoDB tablesapce files. You have to be an administrator
, so that you can access Document and Settings folder or the Program Files folder.
I too faced the same problem and spent almost two to three days in solving the issue. I was fed up with all the other confusing answers I have seen. Finally, I have retrieved all my data from my old drive and can now successfully access it in my new Microsoft Server installation.
This might help someone else.
Problems faced:
Finding database files in the old hard disk:
Answer: Follow the instructions given in this link:
https://www.quora.com/Where-is-the-database-stored-in-the-Microsoft-SQL-server/answer/Allu-Saiprudhvi?prompt_topic_bio=1
If you can't open the folders in the old hard disk("The request could not be performed because of an I/O device error message"):
Answer: Change the corresponding disk name. follow the instructions given in this link "follow the instructions given in this link"
After getting database folders, first download the same version of Mysql server as in the old hard drive , you can check the version mentioned with the folder name itself.
After downloading the same version, paste the database folders in the data folder as shown in the instruction 1 above.
Stop and start the Mysql server in services:
Answer: To know how to restart a mysql server follow the instruction given in the link:
https://www.quora.com/How-do-I-start-the-MySQL-server-in-Windows-10/answer/Allu-Saiprudhvi?prompt_topic_bio=1
Now you can check it, this should successfully make the data inside database accessible using SQL server.
THANK YOU