r/mysql • u/ericbruggema • Jan 12 '25
question Problem restoring ibd file!
Hi there,
I'm new here but not with using mysql and have a little (or big) problem.
I'm using USBWEBSERVER 8.6 (Mysql 5.7.36 / Cliëntversie van database: libmysql - mysqlnd 8.1.3) and had removed some files from the DATA folder (not the subfolders).. After that i could not restore the files and a couple of databases got corrupted...
I've tried alot, creating the table new, removing the namespace and copying the original ibd file to the database folder and then trying to import all the data, but that didn't work... every time the mysql server is going away..
I could not find any tools to restore it and the tools i found didn't work at all. Anyone has any idea's?
1
u/ericbruggema Jan 12 '25
I've tried alot of software but seems that Stellar Repair for MySQL works, but i do not have $200 for the activation key... anyone that has this and would help me turning my ibd files to .sql files?
1
u/ericbruggema Feb 23 '25
Thanks for all help, i found someone that had a registered version of one of these programs. So he got my data back! Thanks!
1
u/eroomydna Jan 12 '25
It would be helpful for you to provide;
1
u/bchambers01961 Jan 12 '25
You could try using mysqlcheck but I’m not sure how successful it will be link
Guessing restoring a backup is a no go?
1
u/brungtuva Jan 13 '25
Look like you had delete table so why you dont restore table from backup? Dont talk tou dont backup database
1
u/Jack-D-123 Feb 02 '25
It seems like your databases got corrupted because some files were removed from the DATA folder. Restoring .ibd files manually can be tricky, but here are a few steps you can try:
ALTER TABLE table_name IMPORT TABLESPACE;
This command may fail if the metadata in the .ibd file doesn’t match the MySQL instance.
Check for Errors: If the MySQL server keeps crashing, check the error log (usually found in the MySQL data directory) to identify what’s going wrong.
If these steps don’t work, the corruption might be severe, and recovery through manual methods could be limited. In that case, using a professional MySQL repair tool might help recover the data. Also, you can read this blog to get help.