We have a MySQL database with duplicate primary key index entries as a result of a DoS attack. The duplicates cannot be found by selects on the ID (it will only show one row, not two), but if you select by a username or password, it will show the two rows. Is it possible to drop the primary key, remove the duplicate rows and then re-index the primary keys?
We found the duplicates existed after trying to repair the table.