Skip to content

Use mysql through SSH #52

@schlessera

Description

@schlessera

Right now, people using Docker have trouble setting up WP-CLI correctly. They either need to install the mysql on their web server as well (instead of only on their database server), or use a separate WP-CLI container altogether.

I was now thinking that it might be possible to allow for a configuration setting that defines an SSH connection to use for the mysql binary. So, instead of blindly running mysql locally, WP-CLI could check whether there's such a configuration setting, and then first log into the actual database server that the SSH settings are pointing to and then run the mysql binary from that database server.

I'm not 100% clear on whether this would all techincally work, but it would certainly be worth some time to investigate.

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