[*] Installer : added timout to sql connection
git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@16743 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
@@ -156,6 +156,7 @@ class MySQLCore extends Db
|
||||
*/
|
||||
public static function tryToConnect($server, $user, $pwd, $db, $newDbLink = true, $engine = null)
|
||||
{
|
||||
ini_set('mysql.connect_timeout', $timeout);
|
||||
if (!$link = @mysql_connect($server, $user, $pwd, $newDbLink))
|
||||
return 1;
|
||||
if (!@mysql_select_db($db, $link))
|
||||
|
||||
Reference in New Issue
Block a user