Skip to content

A free open source IT asset/license management system

fix: update mysqldump options to use --ssl-mode=DISABLED for modern versions

Mohammad Ahmadi3fc651d6594f
diff --git a/config/database.php b/config/database.php
index 83f92861f6..bffbb5d338 100755
--- a/config/database.php
+++ b/config/database.php
@@ -18,9 +18,10 @@ $dump_options = [
//'add_extra_option' => '--optionname=optionvalue',
];
-// Some versions of mysql do not support the --skip-ssl option and will fail if it is even set
+// For modern versions of mysqldump, use --ssl-mode=DISABLED
if (env('DB_DUMP_SKIP_SSL') == 'true') {
- $dump_options['skip_ssl'] = true;
+ // Correctly add the option as a string to the 'add_extra_option' key.
+ $dump_options['add_extra_option'] = '--ssl-mode=DISABLED';
}