Enable TCP Keepalives on TCP connections to MySQL.