diff --git a/e107_handlers/mysql_class.php b/e107_handlers/mysql_class.php index 0636e700a..172f0f378 100644 --- a/e107_handlers/mysql_class.php +++ b/e107_handlers/mysql_class.php @@ -273,6 +273,11 @@ class e_db_mysql $this->mySQLuser = $mySQLuser; $this->mySQLpassword = $mySQLpassword; $this->mySQLerror = false; + + if(strpos($mySQLserver,':')!==false) + { + list($this->mySQLserver,$this->mySQLport) = explode(':',$mySQLserver,2); + } if($this->pdo) // PDO {