Accidentally deleted mysql ibdata1 and ib_logfile1
-
Please HELP ME:
I for some reason deleted the ibdata1, ib_logfile1, ib_logfile0 mysql data folder, then i realized all my databases are gone. I have also cleared my recycle bin.
Is a there a way I can recover or restore the databases?
Thank you.
-
@kuokoad : If the data is matter to you, you can try some file recovery tools on Windows.
Otherwise, you can try:- Rename your data dir to
data.bak
- Start MySQL -> MySQL will start with fresh data
- Stop MySQL
- Copy all data in
data.bak
todata
- Start MySQL
- Rename your data dir to
-
I did that but in phpmyadmin when you click on a table (wordpress table) it tells you table doesn't exist.
-
@leokhoa got it working. with some googlings. Was able to recover all my database
-
and because this link https://recovery.twindb.com/ is not wrking, i went with this post
-
@kuokoad : I'm glad you recovered your data!
Thank you for sharing your solution. It will be very helpful.