You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I'm trying to create a database dump of a remote MySQL server (using spatie/laravel-backup).
However, \Spatie\DbDumper\Databases\MySql::getDumpCommand does not set the --host option for mysqldump, so the command tries to connect to a local DB host and subsequently fails.
I am aware that the host can be set like this when using the fluent syntax:
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello, I'm trying to create a database dump of a remote MySQL server (using spatie/laravel-backup).
However,
\Spatie\DbDumper\Databases\MySql::getDumpCommand
does not set the--host
option formysqldump
, so the command tries to connect to a local DB host and subsequently fails.I am aware that the host can be set like this when using the fluent syntax:
But that doesn't help in my case, I guess. Any ideas?
Edit: A workaround could be to add extra options to the database config for
laravel-backup
:Beta Was this translation helpful? Give feedback.
All reactions