MySQL Forums :: Newbie :: mysql_ping before transaction commit


Advanced Search

mysql_ping before transaction commit
Posted by: P a ()
Date: March 12, 2009 07:38AM

“If the connection has gone down, the mysql_ping() function performs a reconnect if auto-reconnect is enabled.” (http://dev.mysql.com/doc/refman/5.0/en/auto-reconnect.html)

If auto-reconnect is enabled, shall we must use this mysql_ping() before firing any query using mysql_query() or transaction functions mysql_commit() and mysql_rollback()? Definitely I would like auto-reconnect to happen before I commit transaction. Could you please comment on this?

Options: ReplyQuote


Subject Written By Posted
mysql_ping before transaction commit P a 03/12/2009 07:38AM
Re: mysql_ping before transaction commit Rick James 03/14/2009 09:15PM
Re: mysql_ping before transaction commit P a 03/16/2009 09:38AM
Re: mysql_ping before transaction commit Rick James 03/16/2009 09:31PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.