mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-01-11 15:03:20 -05:00
Add MySQL AWS RDS support to mysqldump
This commit is contained in:
parent
c5c27820c9
commit
c3b9de37f9
3
db.js
3
db.js
@ -1973,10 +1973,11 @@ module.exports.CreateDB = function (parent, func) {
|
||||
if (props.host) { cmd += ' -h ' + props.host; }
|
||||
if (props.port) { cmd += ' -P ' + props.port; }
|
||||
|
||||
if (props.awsrds) { cmd += ' --single-transaction'; }
|
||||
|
||||
// SSL options different on mariadb/mysql
|
||||
var sslOptions = '';
|
||||
if (obj.databaseType == 4) {
|
||||
if (props.awsrds) { cmd += ' --single-transaction'; }
|
||||
if (props.ssl) {
|
||||
sslOptions = ' --ssl';
|
||||
if (props.ssl.cacertpath) sslOptions = ' --ssl-ca=' + props.ssl.cacertpath;
|
||||
|
@ -44,6 +44,7 @@
|
||||
"user": { "type": "string", "description": "MySQL username" },
|
||||
"password": { "type": "string", "description": "MySQL password" },
|
||||
"database": { "type": "string", "default": "meshcentral", "description": "Name of MySQL database used" },
|
||||
"awsrds": { "type": "boolean", "default": false, "description": "Set true to resolve LOCK TABLE permissions on AWS RDS." },
|
||||
"ssl": {
|
||||
"type": "object",
|
||||
"description": "SSL Options. Set to true (boolean) for default options.",
|
||||
|
Loading…
Reference in New Issue
Block a user