Carlos Naplos
unread,Jan 8, 2019, 3:27:00 PM1/8/19You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to
Hallo
Weiß jemand, wie die System Variable system_time_zone gesetzt wird?
Ich habe XAMPP mit MariaDB auf Windows 10 installiert.
Wenn ich versuche, mich von NetBeans mit der Datenbank zu verbinden,
erhalte ich eine Fehlermeldung:
> Unable to connect to the MySQL server:
>
> org.netbeans.api.db.explorer.DatabaseException: org.netbeans.api.db.explorer.DatabaseException: java.sql.SQLException: The server time zone value 'Mitteleuropäische Zeit' 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..
>
> The server may not be running or your MySQL connection properties may not be set correctly. Do you want to edit your MySQL connection properties?
phpMyAdmin zeigt die Variablen
system time zone (Wert: Mitteleuropäische Zeit)
und time zone (Wert: SYSTEM)
time zone könnte ich ändern, system time zone nicht (ausgegraut, "Diese
Variable kann nicht verändert werden")
SELECT @@global.time_zone, @@session.time_zone
zeigt zweimal SYSTEM
Nach
SET time_zone = "+01:00";
SET global time_zone = "+01:00";
kann sich NetBeans verbinden.
Der Eintrag
default-time-zone=+01:00
unter [mysqld] in der my.ini
setzt @@global.time_zone, @@session.time_zone schon beim Start des
MariaDB-Servers.
Hurra, das ist eigentlich schon die Lösung.
Nur die Variable "system time zone" hat immer noch den Wert
"Mitteleuropäische Zeit" und es interessiert mich, was es damit auf sich
hat.
Außerdem vermute ich, dass ich jedes Mal die Sommer-/Winterzeit manuell
umstellen muss, was nicht schön wäre.
Kennt sich da jemand aus und kann es mir erklären oder einen Link zu
einer Erklärung schicke.
lg CN
p.s.
Wo der "JDBC driver (via the serverTimezone configuration property)..."
konfiguriert werden kann, habe ich auch nicht gefunden.