Problem z połączeni...
 
Powiadomienia
Wyczyść wszystko

[Rozwiązany] Problem z połączeniem do bazy mysql

2 Wpisów
1 Użytkownicy
1 Likes
902 Wyświetleń
(@gslabik)
Wpisów: 7
Bywalec
Autor tematu
 

Serwer stoi na linux debian 9 + mysql-server.

persistence-mysql - 1.13.0

taki błąd w logu:

2019-09-02 21:09:35.005 [ERROR] [sql.internal.MysqlPersistenceService] - mySQL: Failed connecting to the SQL database using: driverClass=com.mysql.jdbc.Driver, url=jdbc:mysql://127.0.0.1:3306/OpenHAB, user=openhab
java.sql.SQLException: The server time zone value 'CEST' is unrecognized or represents more than one time zone. You must configure either the server or JDBC driver (via the serverTimezone configuration property) to use a more specifc time zone value if you want to utilize time zone support.

Strefy czasowe w linuxie jak i openhab te same.

Ktoś miał podobny problem?

 
Dodane : 02/09/2019 8:13 pm
(@gslabik)
Wpisów: 7
Bywalec
Autor tematu
 

Temat rozwiązany, dla zainteresowanych, strefa w mysql:

mysql>SET GLOBAL time_zone = '+1:00';

Pozdrawiam.

 
Dodane : 04/09/2019 7:32 am
adrian reacted
Udostępnij: