Can't connect to MySQL server

ERROR 2002 (HY000): Can't connect to MySQL server on '10.1.1.1' (115)

You may see this error when restoring a site or during a migrate job. This likely happened as the mysql server restarted as it didn't have sufficient memory for the operation. Upgrading the database server for more memory should fix this. To upgrade your dedicated database server, refer this guide