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.
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.
I’m having this issue and it’s driving me insane!! Using the official MariaDb Hassio add-on. It connects just fine initially now that I changed to IP instead of local host, but it fails whenever it tries to query the recorder.
I also couldn’t get it to switch back to the MySQL default, so I’m stuck without any historical data in the frontend, and it’s turning into a problem.