-
-
Notifications
You must be signed in to change notification settings - Fork 772
Misuse of shell builtins. #92
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
Comments
Could you try running a shell command via php? |
Yes i can |
Could you try calling mysqldump specifically through php? |
Yes i can do that too, through system() |
Could you try running a command using |
I have the same problem with two environments:
I think it's a problem with mysqlbackup.
But |
|
Another two tests: File backuptest.php:
File symfonytest.php:
|
Thank you for running these tests. I'm a bit stumped because under the hood laravel-backup does what you've done in your tests. Are you running your tests and laravel-backup on the command line? |
Yes, i used the same shell for this three commands:
|
Wild guess— Could you edit lines 173-178 in $command = [
"{$this->dumpBinaryPath}mysqldump",
"-h {$this->host}",
"--defaults-extra-file={$temporaryCredentialsFile}",
'--skip-comments',
$this->useExtendedInserts ? '--extended-insert' : '--skip-extended-insert',
]; (added that |
The I'm very sorry for the inconvenience... -.- @yadounis Perhaps you did the same. |
I'll update our documentation to make it more clear that it should only be the path to the binary that should be filled in. |
@heikoeln can you please give me more details on how you solved this issue ? Your answer is not clear for me. Thanks. |
@yadounis But this is right (path only): |
@yadounis |
I tested both configs : and both are resulting with the same error |
Ah ok. I understand. Path only is the only way that shoud work. |
Yes, it was a privilages issue, its worked when i used the mysql root. thanks 👍 |
和环境是有关系的,如果laravel是在Homestead环境下,必须要进入虚拟机里面执行
|
I am facing the same issue in Laravel 5.7, php 7.1. |
What privileges it needs? |
Got a solution. stop then enter following in your browser localhost/My_APP_NAME/public |
Was having this same issue on a production server.
I eventually solved it by updating the database user's password and removing special characters such as #. |
After digging on the
I tried changing it to My Setup:
PS: This is an old project and haven't upgraded the Laravel version since. |
add if you xampp: /Applications/Xampp/bin |
Hi,
I got this problem when running backup:run
Starting backup... Dumping database prostats_db... Backup failed because The dump process failed with exitcode 2 : Misuse of shell builtins. Backup completed!
I'm running on L5.2, PHP5.6 and Debian 8
The text was updated successfully, but these errors were encountered: