Skip to content

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

Open

Description

@MrHappy

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...

Activity

  1. TrystanLea commented on Jan 21, 2020

    @TrystanLea
    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

  2. TrystanLea commented on Jan 21, 2020

    @TrystanLea
    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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions