Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi to all ..

I have a problem which regards to MySQL Server program which is installed in my PC. I am using Windows 7 Ultimate 64 bit which has been corrupted and I cannot recover it because I have no disk. What I did is that I installed it with an OS which is the same with the old one. Then I got a "Windows.old" and "Windows" folder. And I know that my MySQL Server is in the Windows.old folder.

Here's the problem..

How can I run the MySQL Server from the Windows.old folder in order for me to get a database backup? Is there any way to solve this problem?

Please help me through this.. Thank you all!!
Posted
Updated 11-Aug-15 21:28pm
v2

1 solution

Install a new copy of MySQL (the same version as the old) and copy the data directory from the old folder to the new location...
The folder should be at ProgramData\MySQL\MySQL Server [version]\data...
If you can not find than look for my.ini (or my.cnf) to see where the data stored...
 
Share this answer
 
Comments
Romeland C. dela Peña 11-Aug-15 4:26am    
thank you .. i'll try it! :)
Romeland C. dela Peña 12-Aug-15 3:19am    
hi Kornfeld Eliyahu Peter ...

I have already copied the data directory from the old folder to the new location the tables shown in the datbase using the MySQL Query Browser and when I try to query a table, it returns a message telling the Table doesn't exist.

Im so sorry for this .. I am only a novice in this development.
Kornfeld Eliyahu Peter 12-Aug-15 3:21am    
So you see the database, but not the table?
Romeland C. dela Peña 12-Aug-15 3:29am    
i see the database and also its tables. What i did is in this link http://dba.stackexchange.com/questions/24403/change-existing-datadir-path
Kornfeld Eliyahu Peter 12-Aug-15 3:41am    
You wrote: "when I try to query a table, it returns a message telling the Table doesn't exist"
So where you DO see that table?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900