From 711949414d3635d86e14fc60930613bf404d98e7 Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Thu, 16 Oct 2014 14:32:10 +0000 Subject: [PATCH] Fixed the support of a non-default port for MySQL, thanks to theBigOne! SVN:trunk[3368] --- core/cmdbsource.class.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/cmdbsource.class.inc.php b/core/cmdbsource.class.inc.php index 3345ee57c..327f03f50 100644 --- a/core/cmdbsource.class.inc.php +++ b/core/cmdbsource.class.inc.php @@ -79,7 +79,7 @@ class CMDBSource // Override the default port $sServer = $aConnectInfo[0]; $iPort = (int)$aConnectInfo[1]; - self::$m_oMysqli = new mysqli(self::$m_sDBHost, self::$m_sDBUser, self::$m_sDBPwd, '', $iPort); + self::$m_oMysqli = new mysqli($sServer, self::$m_sDBUser, self::$m_sDBPwd, '', $iPort); } else {