Skip to content

Install instructions for remote MySQL #1047

@chris-hailstorm

Description

@chris-hailstorm

My goal is to configure Airflow to run on my local machine, but using a MySQL instance running on Amazon RDS -- I'm using the install steps outlined on http://pythonhosted.org/airflow/installation.html.

The step for installing MySQL support is pip install airflow[mysql]. On my OSX box, the pip install fails with this error: EnvironmentError: mysql_config not found. Reading a few StackOverflow articles, it appears the mysql_config executable needs to be on the path for this install to succeed. You wouldn't expect to always find that utility on the local machine if MySQL will be running remotely.

I created a work-around by installing MySQL locally and putting this utility on my path. I suspect that may cause a problem with Airframe since the version and configuration of local vs. remote MySQL can differ.

Two suggested changes to the documentation:

(1) To run MySQL locally -- state that MySQL must be installed, and mysql_config must be on the path.

(2) To run MySQL remotely -- say what needs to be done. Maybe my workaround is the right approach, but you would be a better judge of that. For the general case, assume MySQL is not installed locally.

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions