[*] Installer : added timout to sql connection
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