fix `mysqldump: Error 2013: Lost connection` on "cloud" server
In my case it helped to stop Apache, do mysqldump and then start Apache. 

Nothing else helped, no options that were recommended. Nothing (and I searched all posts). I have low 512M memory and maybe this is also the cause.