mysql_ping
Ping a server connection or reconnect if there is no connection
&reftitle.description;
boolmysql_ping
resourcelink_identifier
Checks whether or not the connection to
the server is working. If it has gone down, an automatic reconnection is
attempted. This function can be used by scripts that remain idle for a
long while, to check whether or not the server has closed the connection
and reconnect if necessary.
Since MySQL 5.0.13, automatic reconnection feature is disabled.
&reftitle.parameters;
&mysql.linkid.description;
&reftitle.returnvalues;
Returns &true; if the connection to the server MySQL server is working,
otherwise &false;.
&reftitle.examples;
A mysql_ping example
]]>
&reftitle.seealso;
mysql_thread_id
mysql_list_processes