fix wrong database-usage in DbManagerMySQL::grantCreateToCustomerDbs() when using more than 1 mysql-server; refs #1312

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2025-03-10 17:46:50 +01:00
parent e9d3de0c25
commit 9253a94aad
3 changed files with 17 additions and 3 deletions

View File

@@ -377,6 +377,14 @@ class Database
self::$link = null;
}
/**
* get the currently used database-server (relevant for root-connection)
*/
public static function getServer()
{
return self::$dbserver;
}
/**
* enable the temporary access to sql-access data
* note: if you want root-sqldata you need to