I'm trying to move a database from a Windows2003Server with mysql 5.0.27-community-nt to a new server with CenTOS. When using mysqldump on the database on the windows server, one table (i haven't started checking how widespread the problem is) is being dumped with quite some deleted records in it. After restoring the dump on the new server, I can easily spot records that exist on the new server but not on the old one. However, when I do a select count(*) both tables show the same record. The dump is created with --opt, and I also tried dropping the new server's table before a restore. Reading through the dump (I did a table exclusive dump) I can spot the inserts for the records that exist in one database but not the other one. I also tried doing a flush tables before dumping the table, and tried using SQLyog's export to SQL function, all with the same result.
What can be going on?
SELECT * FROM table_nameand transforms the results back into INSERT statements. One possibility is that you might have an index-related problem that's keeping you from finding the records on the old server usingWHERE, but they're really there. The fact that COUNT(*) returns the same value seems to suggest that this might be the case. – Michael - sqlbot Feb 18 at 20:59