-
-
Notifications
You must be signed in to change notification settings - Fork 761
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error in db backup #45
Comments
Could you make sure that mysqldump is installed on your system? |
Yep and it is pointed in my config file: |
That looks ok. Could you try to make a backup manually with mysqldump and see if that works? |
Work like machine if I manualy run backup in my terminal |
Strange... do you have enough free space on your machine? Guess I'm sounding like one of those Microsoft Help wizards at this point 😄 |
:) yes of course I have - I run manual dump - I think to go to the place in code where this error is caused and see what is there. Thanks |
k cool, let me know what you find |
It was because I point to file not to directory of mysqldump file 'dump_command_path' => '/Applications/MAMP/Library/bin/mysqldump', just change it to 'dump_command_path' => '/Applications/MAMP/Library/bin/', Maybe it is better for developer to know - when you throw the Exception to send also the messaga Now I have message in my terminal Database dumped but no file actualy is there. Folder have writing permmisions. |
Anyone ? |
What is the output of |
Array
) Note that I use database backup only |
The path in If you are using the Laravel defaults you'll find your backups in |
Thanks I understand now - how you build the path where file must be stored. Thanks for help and keep going with the great work |
👍 |
I use windows 10 and mysqldump places in 'connections' => [
'mysql' => [
'dump_command_path' => 'D:\WEB\modules\database\MySQL-5.7-x64\bin'
]
] But anyway getting error |
$ php artisan backup:run --only-db
Start backing up
Could not create backup of db -
//vendor/spatie/laravel-backup/src/BackupHandlers/Database/DatabaseBackupHandler.php -
44 -
[Exception]
Could not create backup of db
The text was updated successfully, but these errors were encountered: