1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-08 23:56:58 +02:00

Fixes #1768 - Support for port number in mysql-server during installation. ie. localhost:port

This commit is contained in:
Cameron
2016-07-09 10:55:27 -07:00
parent ce4369ed4a
commit 17dc4687a5

View File

@@ -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
{