 <p>They doesn't really reset the <code>wait_timeout</code> value but they do reset the "time since last command" so doing <code>SHOW SESSION VARIABLES</code> often enough would prevent the server to close the connection. So would <code>SELECT 1</code>.</p>