Skip to content

Running Upgrade.php with an externally hosted MySQL database failing on backup step #16029

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

Closed
ntbutler-nbcs opened this issue Jan 7, 2025 · 1 comment

Comments

@ntbutler-nbcs
Copy link
Contributor

Hi all.

We have our MySQL instance running on a separate server. When we go to run the upgrade.php file we have it bomb out at the backup database step, which is because the mysqldump binary is not installed on the local webserver.

Should the upgrade.php file be updated for that step to handle this situation? Or, is there an environment variable that I've missed that could be used to effectively skip this step?

At this stage, we have just been commenting out those lines of the upgrade.php file before we begin, and running dumps/snapshots on the separate server anyway, but if there is an existing method that we should be following for this setup then we'd obviously like to make sure we are following that.

Cheers!

@snipe
Copy link
Member

snipe commented Jan 16, 2025

You'd need to install the mysqldump binary on the local server - it can talk to outside databases. https://stackoverflow.com/questions/44583004/how-to-config-spatie-laravel-backup-when-datadase-was-on-another-machine

Stack Overflow
I try to use spatie/laravel-backup, In my local I can config 'dump_binary_path' => '/usr/local/mysql/bin'.

But in my PROD server database was on another machine. My application call database s...

@snipe snipe closed this as completed Jan 16, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants