Skip to content

Commit

Permalink
fix database config for mysqldump called by backupmanager
Browse files Browse the repository at this point in the history
  • Loading branch information
tabacitu committed Mar 1, 2022
1 parent 9b9be9d commit 3fef3df
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .env.example
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,4 @@ MAIL_ENCRYPTION=null
# MAIL_PASSWORD=null
# MAIL_ENCRYPTION=null


MYSQL_DUMP_PATH=/Applications/MAMP/Library/bin/
MYSQL_DUMP_PATH=/opt/homebrew/bin/
10 changes: 7 additions & 3 deletions config/database.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,13 @@
'prefix' => '',
'strict' => false,
'engine' => null,
'dump_command_path' => env('MYSQL_DUMP_PATH', '/Applications/MAMP/Library/bin/'), // only the path, so without 'mysqldump' or 'pg_dump'
'dump_command_timeout' => 60 * 5, // 5 minute timeout
'dump_using_single_transaction' => true,
'dump' => [
'dump_binary_path' => env('MYSQL_DUMP_PATH', '/opt/homebrew/bin/'),
'use_single_transaction',
'timeout' => 60 * 5, // 5 minute timeout
// 'exclude_tables' => ['table1', 'table2'],
// 'add_extra_option' => '--optionname=optionvalue',
],
],

'pgsql' => [
Expand Down

0 comments on commit 3fef3df

Please sign in to comment.