From 17dc4687a5844567199c5095318db1b30724c64b Mon Sep 17 00:00:00 2001 From: Cameron Date: Sat, 9 Jul 2016 10:55:27 -0700 Subject: [PATCH] Fixes #1768 - Support for port number in mysql-server during installation. ie. localhost:port --- e107_handlers/mysql_class.php | 5 +++++ 1 file changed, 5 insertions(+) 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 {