Iβve installed MySQL on Hassbian but I keep getting this error
2017-11-21 16:55:47 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named 'MySQLdb' (retrying in 3 seconds)
2017-11-21 16:55:50 ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: No module named 'MySQLdb' (retrying in 3 seconds)
Anyone else ran into this issue and can assist ?
Thanks in advance
Hello, seems mysqlclient is not installed in the python environment used by Home Assistant.
Can you try to do the following in console:
$ sudo systemctl stop [email protected]
$ sudo su -s /bin/bash homeassistant
$ source /srv/homeassistant/bin/activate
$ pip3 install mysqlclient
$ exit
$ sudo systemctl start [email protected]
It should install mysqlclient properly
hey juan - i just installed mysql with the hassbian-config tools. At the end it says mysql and the mysqlclient was successful. I canβt for the live of me figure how to create the database and database user. can you let me know the steps you took. thanks
It seems to have installed OK, however when restarting HA I get this error:
ERROR (Recorder) [homeassistant.components.recorder] Error during connection setup: libmariadb.so.3: cannot open shared object file: No such file or directory (retrying in 3 seconds)