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)
# the database user
# the database password
# the reconnection counter
# the connection timeout (in seconds)
# 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)