[*] Installer : added timout to sql connection

This commit is contained in:
dMetzger
2012-08-07 12:32:40 +00:00
parent 42b8c84fc2
commit b7b410f512
4 changed files with 14 additions and 7 deletions
+1
View File
@@ -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))