2
I have a database MySql
, where I performed a backup of all data from a given database (all data within a file has actually been saved .sql
) but when I was reset using this file was not inserted all tables of the database (Total 18, Inserted 14)
Questions:
- What Real Reason For This Problem ?
- How to solve ?
Obs1: I noticed that it was saved the tables in alphabetical order soon I could notice a mismatch of Primary and Foreign Keys (Insertion of foreigners before foreign keys) (Possible problem)
Obs2: Mysql dump 10.13 Distrib 5.6.21, for Win32 (x86), Innodb
This has already happened to me, however, I was using postgresSQL , I had made some changes in the backup configuration and forgot to return to the normal state of the bank. I just decided to remove the bank and reinstall it! But my luck is that it had other backups!! You just made a single backup?
– Pena Pintada
@Penapintada yes this is the only Backup (has all tables only at insert time does not insert all)
– Ricardo
Unless mistaken, the Mysql dump , without extra parameters does not lock the accesses to the tables, and may generate lack of integrity between them if you have application accessing the database. If this SQL file is the only thing you have now, I suggest you edit it, comment/remove all constraints manually and try to load it... if you load it, then the problem really is the lack of integrity. I also suggest taking a look at the file contents to see if the "missing" tables are really there.
– ceinmart