Changing the database engine to MyISAM solved the problem.

Thanks to everyone.

i