Currently, I’m using Hassio on NUC (docker - Debain) and trying to integrate with Mariadb (not installed on docker) - Hassio docker and Mariadb run on the same NUC - Debian OS, but I cannot integrate them.
I followed this instruciton on youtube (https://www.youtube.com/watch?v=4rsxnN8gkHk)
Below is my config and the error in Hassio
recorder: db_url: mysql://HA:[email protected]/HAdb?charset=utf8 purge_keep_days: 365
Error during connection setup: (MySQLdb._exceptions.OperationalError) (2002, "Can't connect to local MySQL server through socket '/run/mysqld/mysqld.sock' (2)") (Background on this error at: http://sqlalche.me/e/e3q8) (retrying in 3 seconds)
Anyone has experienced about this issue, can you help to advice me for this issue?
btw, I found in the error log of Hassio "Can’t connect to local MySQL server through socket ‘/run/mysqld/mysqld.sock’ the folder dir is different with in Mariadb. I dont know whether it caused the connection issue or not.