Skip to content

Commit 3fc651d

Browse files
author
Mohammad Ahmadi
committed
fix: update mysqldump options to use --ssl-mode=DISABLED for modern versions
1 parent b91d230 commit 3fc651d

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

config/database.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,10 @@
1818
//'add_extra_option' => '--optionname=optionvalue',
1919
];
2020

21-
// Some versions of mysql do not support the --skip-ssl option and will fail if it is even set
21+
// For modern versions of mysqldump, use --ssl-mode=DISABLED
2222
if (env('DB_DUMP_SKIP_SSL') == 'true') {
23-
$dump_options['skip_ssl'] = true;
23+
// Correctly add the option as a string to the 'add_extra_option' key.
24+
$dump_options['add_extra_option'] = '--ssl-mode=DISABLED';
2425
}
2526

2627

0 commit comments

Comments
 (0)