Link to home
Start Free TrialLog in
Avatar of HuyBD
HuyBDFlag for Viet Nam

asked on

Drop database, restore from ibdata1 (MySQL 5.0)

hi Experts!

I did drop database by mistake, I try to get folder if database from deleted and copy to data folder under mysql root but some table can read data (.MYD or .MYI) and some can not

How can I restore database for that

Thanks in advanced!

HuyBD
ASKER CERTIFIED SOLUTION
Avatar of Aleksandar Bradarić
Aleksandar Bradarić
Flag of Serbia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HuyBD

ASKER

Unfortunately, the table is innoDB type, data may store in ibdata1 file with no changing  of size but no way to restore data, the tables with only .frm file doesn't exists :(

Please give me a solution, even to forget all lost data.
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
If you had the binary logs you might be able to restore from those - but they'd need to go back to the creation of the table:

http://dev.mysql.com/doc/refman/5.0/en/server-system-variables.html

Other than thank I think you've had it - sorry.