News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Brian Moon's Blog:
PHP's MySQL connection timeout
January 14, 2008 @ 12:59:00

In the process of debugging one of his scripts, Brian Moon came across a default setting (and problem) in the MySQL extension that didn't seem to make much sense to him:

There are several reasons that PHP could not be able to connect to MySQL. [...] Or, perhaps the entire server is offline.

The mysql.connect_timeout setting in the php.ini is supposed to handle this sort of instance, but the default is set tpo 60 seconds. It's only apparently used when the server is completely offline and, in his opinion, is set way too high. He's proposing a patch to the MySQL extension to change this setting's default to shorten it to something a bit more reasonable.

1 comment voice your opinion now!
mysql extension timeout server offline default mysql extension timeout server offline default


blog comments powered by Disqus

Similar Posts

Jurriaanpersyn.com: Ajax/PHP-powered Sudoku Helper

Tobias Schlitt's Blog: Apache vs. Lighttpd: "echo" performance

Greg Beaver's Blog: behold pecl/phar and mighty PHP 5.3, also php|arch and php|tek

John Coggeshall's Blog: Compiling extensions for Zend Core

SitePoint PHP Blog: Create a Movie Recommendation App with Prediction.io Implementation


Community Events

Don't see your event here?
Let us know!


introduction version extension php7 library example podcast unittest wordpress opinion laravel language laravel5 series interview community api voicesoftheelephpant release framework

All content copyright, 2015 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework