leggi qui:

http://forums.mysql.com/read.php?22,...849#msg-200849


sembra che il problema sia la FOREIGN KEY