3
0
mirror of https://github.com/snipe/snipe-it.git synced 2026-02-04 21:15:41 +00:00

Merge pull request #18044 from mohammad-ahmadi1/ISSUE-17004-fix-db-dump-ssl-issue

fix: update mysqldump options to use --ssl-mode=DISABLED for modern versions
This commit is contained in:
snipe
2025-10-28 20:37:08 +00:00
committed by GitHub

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