🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: de.comp.datenbanken.mysql
1 messages
1 total messages Started by Carlos Naplos Tue, 08 Jan 2019 21:27
MariaDB System Variable system_time_zone
#79877
Author: Carlos Naplos
Date: Tue, 08 Jan 2019 21:27
51 lines
1932 bytes
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_z;
	SET global time_z;
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.
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads