There's a discussion here. Seems like "SELECT 1" is one way.
http://stackoverflow.com/questions/2546868/cheapest-way-to-to-determine-if-a-mysql-connection-is-still-alive


Reply to this email directly or view it on GitHub.