mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-02-12 11:01:52 +00:00
Merge branch 'master' of https://github.com/Ylianst/MeshCentral
This commit is contained in:
commit
937ee98beb
1 changed files with 2 additions and 9 deletions
11
db.js
11
db.js
|
@ -443,15 +443,8 @@ module.exports.CreateDB = function (parent, func) {
|
||||||
var dbname = (connectinArgs.database != null) ? connectinArgs.database : 'meshcentral';
|
var dbname = (connectinArgs.database != null) ? connectinArgs.database : 'meshcentral';
|
||||||
|
|
||||||
// Including the db name in the connection obj will cause a connection failure if it does not exist
|
// Including the db name in the connection obj will cause a connection failure if it does not exist
|
||||||
var connectionObject = {
|
var connectionObject = Clone(connectinArgs);
|
||||||
'host': connectinArgs.host,
|
delete connectionObject.database;
|
||||||
'port': connectinArgs.port,
|
|
||||||
'user': connectinArgs.user,
|
|
||||||
'password': connectinArgs.password,
|
|
||||||
'connectionLimit': null
|
|
||||||
};
|
|
||||||
if (connectinArgs.connectionLimit != null) connectionObject.connectionLimit = connectinArgs.connectionLimit;
|
|
||||||
|
|
||||||
|
|
||||||
if (parent.args.mariadb) {
|
if (parent.args.mariadb) {
|
||||||
// Use MariaDB
|
// Use MariaDB
|
||||||
|
|
Loading…
Reference in a new issue