This issue can occur with MySQL when a large bulk insert of thousands of rows is being performed.
The solution is usually to change a setting on the MySQL server itself.
in the my.cnf file, in the [mysqld] section,you should check if the following key exists:
if so, they should double the current value of this key and restart MySQL.
If it does not exist, then they should add it with a value of 120, e.g.