Compruebe esto:https://www. digitalocean.com/community/questions/how-to-set-no-timeout-to-mysql En particular, se declara: