Skip to content
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

backup won't run, connects to local mysql instead of remote #24

Open
MrHappy opened this issue Feb 19, 2019 · 2 comments
Open

backup won't run, connects to local mysql instead of remote #24

MrHappy opened this issue Feb 19, 2019 · 2 comments

Comments

@MrHappy
Copy link

MrHappy commented Feb 19, 2019

When I try to run the backup it says it fails to connect to mysql on localhost.
For emoncms I use a mysql-database on another server.
Somehow it doesn't use the settings in settings.php og emoncms...

@TrystanLea
Copy link
Member

Yes, it looks like we are not specifying a hostname here:

mysqldump -u$username -p$password $database > $backup_location/emoncms.sql

The backup module isn’t strictly intended for non local databases, but I will add this as an item to be improved in future

@TrystanLea
Copy link
Member

I note now your pull requests of course, I will make a point to review this, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants