shuvroroy / filament-spatie-laravel-backup

Create backup of a Laravel application
MIT License
201 stars 43 forks source link

Command mysqldump not found #73

Closed sparmin closed 4 months ago

sparmin commented 5 months ago

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.

sparmin commented 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:

'connections' => [
    'mysql' => [
        'driver'    => 'mysql'
        ...,
        'dump' => [
           'dump_binary_path' => '/path/to/the/binary', // only the path, so without `mysqldump` or `pg_dump`
        ]
    ],