Hi.
My hass runnig without problems with mysql recorder until I went to the docker
Now my hass spits mistakes :
ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (_mysql_exceptions.OperationalError) (2002, 'Can\'t connect to local MySQL server through socket \'/var/run/mysqld/mysqld.sock\' (2 "No such file or directory")') (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
2018-09-25 15:15:09 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (_mysql_exceptions.OperationalError) (2003, ‘Can't connect to MySQL server on '192.168.1.82' (111 “Connection refused”)’) (Background on this error at: Error Messages — SQLAlchemy 2.0 Documentation) (retrying in 3 seconds)
but not yet
you need to give the appropriate permissions:
grant all privileges on hass.* to hass@‘%’ identified by ‘xxxx’;
flush privileges;