Latey I’ve been seeing this mysql error (below) in my openhab.log, I restarted openhab2 and after about 2 hours it re-occurred, is this normal?
I’ve tried a few combinations in my mysql.cfg but not sure if the default is good or there is something else going on here.
[ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Connection is not valid!
[ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Error count exceeded 1. Disconnecting database.
not sure if you meant my services file /etc/openhab2/services/mysql.cfg
# the database url like 'jdbc:mysql://<host>:<port>/<database>' (without quotes)
url=jdbc:mysql://localhost/OpenHAB
# the database user
user=openhab
# the database password
password=****
# the reconnection counter
reconnectCnt=1
# the connection timeout (in seconds)
waitTimeout=28800
# Use MySQL Server time to store item values (=false) or use openHAB Server time (=true).
# For new installations, its recommend to set "localtime=true".
# (optional, defaults to false)
localtime=true