Add MySQL AWS RDS support to mysqldump
Noah Zalev committed
Nov 17, 2021 at 19:12 UTC
c3b9de37f916528444c756f6badfc65c419e5d06
2 files changed
+3
-1
db.js
+2
-1
@@ -1973,10 +1973,11 @@ module.exports.CreateDB = function (parent, func) {
1973
if (props.host) { cmd += ' -h ' + props.host; }
1974
if (props.port) { cmd += ' -P ' + props.port; }
1975
1976
+ if (props.awsrds) { cmd += ' --single-transaction'; }
1977
+
1978
// SSL options different on mariadb/mysql
1979
var sslOptions = '';
1980
if (obj.databaseType == 4) {
1979
- if (props.awsrds) { cmd += ' --single-transaction'; }
1981
if (props.ssl) {
1982
sslOptions = ' --ssl';
1983
if (props.ssl.cacertpath) sslOptions = ' --ssl-ca=' + props.ssl.cacertpath;
meshcentral-config-schema.json
+1
@@ -44,6 +44,7 @@
44
"user": { "type": "string", "description": "MySQL username" },
45
"password": { "type": "string", "description": "MySQL password" },
46
"database": { "type": "string", "default": "meshcentral", "description": "Name of MySQL database used" },
47
+ "awsrds": { "type": "boolean", "default": false, "description": "Set true to resolve LOCK TABLE permissions on AWS RDS." },
48
"ssl": {
49
"type": "object",
50
"description": "SSL Options. Set to true (boolean) for default options.",