Make sure that
1. Your server is allowing connections to the MySQL host.
2. Your MySQL host is allowing connections to the server.
I haven't changed anything. And i don't whether they are allowing or not, one thing i know, everything was working fine and when the server restart it showing the connection is dead in the debug log.