[*] Installer : added timout to sql connection

This commit is contained in:
dMetzger committed 2012-08-07 12:32:40 +00:00
1 parent 42b8c84fc2
commit b7b410f512
4 files changed
+14 -7

No files matched your search

+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))