Ok, I got the answer to my own problem.
Possible Scenario
- MYSQL program is corrupted and fail to start. Fresh install of MYSQL
did not restore the data.
- Computer crashed but hard disk is still
working
- Windows corrupted and fail to start up, but data is safe.
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.
- Open Window Explorer (Windows Key + E) or Open My Computer and go to the data folder where your database files reside.
- I would recommend you to copy all the folders in the data folder than just picking a few to copy. Copy the database folders and ibdata file (DO NOT COPY THE ib_logfile(x) files!)
Note that the ibdata file might not be in the same location as the data files.
To find out where it could be, read How to find MYSQL database files in Windows.
- Go over to the target computer, Open System Services. (Type services.msc at the Windows menu “Search Program and files” entry box)
- On the right panel of the Services window, scroll along the list and look for the name “MYSQL“. Select MYSQL and right mouse click and click . Once it has stopped, you will it’s status become blank instead of .
- Similarly look for the location of the data folder. Once you located it, I recommend you back up the folder or just rename it. Paste over the folders and ibdata file you have copied from the source computer to the data folder.
- Go back to the Services window and select back MYSQL. Right mouse click on it and click to resume the MYSQL service.
- Open MYSQL administrator and log on to your database server and you should be able to see your transferred database together with their data.