diff --git a/install/lib/mysql.lib.php b/install/lib/mysql.lib.php index 01f1aa6c6165d2fb95a0a47741a50b53b296b6d2..2528100cc51c8fc0bd096d1ef28a168a4cf42fec 100644 --- a/install/lib/mysql.lib.php +++ b/install/lib/mysql.lib.php @@ -107,7 +107,7 @@ class db public function setDBName($name) { $this->dbName = $name; - $this->_iConnId = mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass); + $this->_iConnId = mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass, '', (int)$this->dbPort); if(!((bool)mysqli_query( $this->_iConnId, 'USE `' . $this->dbName . '`'))) { $this->close(); $this->_sqlerror('Datenbank nicht gefunden / Database not found'); @@ -204,7 +204,7 @@ class db $try++; $ok = mysqli_ping($this->_iConnId); if(!$ok) { - if(!mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass, $this->dbName, '', (int)$this->dbPort)) { + if(!mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass, $this->dbName, (int)$this->dbPort)) { if($this->errorNumber == '111') { // server is not available if($try > 9) {