Docker-airflow: Can't connect to MySQL via local socket

Created on 13 Nov 2015  路  2Comments  路  Source: puckel/docker-airflow

Hi, great progress on packaging airflow as containers, thanks!

After pulling and building the latest version of the docker images I'm still not able to access the data-profiling features. For ad-hoc queries and charts I'm getting this error:

(2002, "Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)")

screen shot 2015-11-13 at 12 45 25 pm

Any advise?

Most helpful comment

Hi,

Two things :

  • Go to Admin -> Connections and Edit "mysql_default" set this values :
  • host : mysql
  • Schema : airflow
  • Login : airflow
  • Password : airflow

Then Save and continue.

  • Go back to Ad Hoc Query, select "mysql_default" in the list and run your query.

All 2 comments

Hi,

Two things :

  • Go to Admin -> Connections and Edit "mysql_default" set this values :
  • host : mysql
  • Schema : airflow
  • Login : airflow
  • Password : airflow

Then Save and continue.

  • Go back to Ad Hoc Query, select "mysql_default" in the list and run your query.
Was this page helpful?
0 / 5 - 0 ratings

Related issues

pnats picture pnats  路  5Comments

yampelo picture yampelo  路  6Comments

manishgupta24 picture manishgupta24  路  3Comments

hxu-lift picture hxu-lift  路  4Comments

flynnCoolblue picture flynnCoolblue  路  7Comments