Closed sparmin closed 4 months ago
Solved it. I'm working on MacOS with MySQL installed via brew, that's why the mysqldump binary was installed at a custom location.
Solution:
Find out the path variable, where your mysqldump binary is installed
which mysqldump
Update your config/database.php
:
'connections' => [
'mysql' => [
'driver' => 'mysql'
...,
'dump' => [
'dump_binary_path' => '/path/to/the/binary', // only the path, so without `mysqldump` or `pg_dump`
]
],
I get following bug:
Exitcode ======== 127: Command not found Output ====== <no output> Error Output ============ sh: mysqldump: command not found
mysqldump is installed though. Running
php artisan backup:run
also runs perfectly. The error only occurs in the logs when the backup is started via the plugin.