Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

MySQL server turned off auto-reconnect by default in version 5.0.13: http://dev.mysql.com/doc/refman/5.0/en/auto-reconnect.html

In MySQL 5.0, auto-reconnect was enabled by default until MySQL 5.0.3, and disabled by default thereafter. The MYSQL_OPT_RECONNECT option is available as of MySQL 5.0.13. 

The existing code all uses the 'mysql' functions, not the 'mysqli' ones. While 'mysqli' has a PHP.ini configuration called 'mysqli.reconnect' that can affect this, I am unable to find any 'mysql' configuration to do the same.

An upgrade from mysql 4.1 to 5.5 is causing this issue. Is there no way to globally set reconnect on either from the MySQL side or from the Apache/PHP side?

PHP version is 5.3.3, Apache 2.2, MySQL 5.5.

share|improve this question

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.