Skip to content
Snippets Groups Projects
Commit 772dad9f authored by Florian Schaal's avatar Florian Schaal
Browse files

mysql master-db during multiserver-setup / update

parent 37b29231
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,7 @@ class db extends mysqli
public function setDBName($name) {
$this->dbName = $name;
$this->_iConnId = mysqli_connect($this->dbHost, $this->dbUser, $this->dbPass);
if(!((bool)mysqli_query( $this->_iConnId, 'USE `' . $this->dbName . '`'))) {
$this->close();
$this->_sqlerror('Datenbank nicht gefunden / Database not found');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment