mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2025-03-09 15:40:18 +00:00
Add MySQL AWS RDS support to mysqldump
This commit is contained in:
parent
c5c27820c9
commit
c3b9de37f9
2 changed files with 3 additions and 1 deletions
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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue