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

This commit is contained in:
Mohammad Ahmadi
2025-10-15 00:30:53 +02:00
parent b91d23023d
commit 3fc651d659

View File

@@ -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';
}