Urgent. Please Help! Mistakenly deleted data when copy database structure from a existing database to a new one.
Hello! There is a problem with my database if0_37952891_fps:
I originally intended to export the structure of the “if0_37952891_fps” and then import it into a new database “if0_37952891_fes”. However, after performing a series of operations, I couldn’t identify which specific operation caused the issue—mostly because the SQL logs showed “0 rows affected” in most cases. Unfortunately, this resulted in some tables in the original if0_37952891_fps database being emptied.
The structure of all tables is still there, but the data of some tables has been mistakenly cleared (turned to 0 rows), while the data of some tables is normal.
Could you please help me:
1. Check if the server has an “automatic backup” of this database (such as the last 1-3 days’ backup). If so, help me restore it to the “version before data loss” (or only restore the data of those empty tables);
2. If there is no automatic backup, please help me extract the mysql data file corresponding to this database (.ibd file, the path is usually /var/lib/mysql.if0_37952891_fps /), especially the.ibd files of those empty tables, I need to use them to restore the data.
3. When restoring, please retain the data of the existing normal tables to avoid overwriting.
THANK YOU VERY VERY VERY MUCH!