Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 96123

MYSQL/Mariadb using docker

$
0
0

@pdwonline wrote:

I have homeAssistant running in docker on a nuc using an SSL offloading proxy and seperate mariadb image. (see screenshot from portainer showing the 3 containers running). HomeAssistant seems unable to connect to the database image based on the docker image name (which is ‘mariadb’ in my case. I have created a database and user and granted the user rights to the database. here is the prhrase of my config that define the connection in homeAssistant

dbconnection: mysql://hassuser:@mariadb/hass_db

When I start HomeAssistant, the log says:

2020-02-15 17:55:36 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: (MySQLdb._exceptions.OperationalError) (2005, “Unknown MySQL server host ‘mariadb’ (-2)”)

Since I have set this up succesfully in the past I must be overlooking something stupid…

Posts: 6

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 96123

Trending Articles