mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-11-07 21:02:53 -05:00
Add MySQL AWS RDS support to mysqldump
This commit is contained in:
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;
|
||||
|
||||
Reference in New Issue
Block a user