I get this error message:
<ERROR 1217 (23000) at line 40: Cannot delete or update a parent row: a foreign key constraint fails
Two possibilities:
You can see which table it was (one of them, anyway) by doing a "SHOW ENGINE INNODB STATUS" after the drop fails.
If it turns out to be the latter case, I'd dump and restore the whole server if you can.
MySQL 5.1 and above will give you the name of the table with the FK in the error message.
hopefully its work
SET foreign_key_checks = 0;
DROP TABLE table name
;
SET foreign_key_checks = 1;
i found an easy solution, export the database, edit it what you want to edit in a text editor, then import it. Done