MySQL SQLException time zone value is unrecognized

DrPils

Bekanntes Mitglied
Moin,

Wenn ich eine Verbindung zur Datenbank url aufbauen möchte bekomme ich eine Sql Exception
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.
Ich habe den MySQL Connector 8.0.20 eingebunden. Ich habe keine Ahnung an was es liegt. Wäre schön wenn mir jemand helfen kann.
Am Code wird es wohl nicht liegen, aber der Vollständigkeit halber:
Java:
public class JdbcTest {


    public static void main(String[] args) {

        Connection connection = null;
        Statement statement = null;
        ResultSet resultSet = null;

        String dbUrl = "jdbc:mysql://localhost:3306/demo";
        String user = "student";
        String pass = "student";

        try {
            connection = DriverManager.getConnection(dbUrl, user, pass);
            statement = connection.createStatement();
            resultSet = statement.executeQuery("SELECT * FROM  demo");

            while (resultSet.next()) {
                //do some stuff
            }
        } catch (SQLException e) {
            e.printStackTrace();
        }
    }
}
 
Ähnliche Java Themen
  Titel Forum Antworten Datum
V SQLite java.sql.SQLException: no such column: Datenbankprogrammierung 18
M Oracle SQLException: Verbindung getrennt Datenbankprogrammierung 2
S MySQL SQLException Parameter index out of range (1 > number of parameters, which is 0). Datenbankprogrammierung 10
B Probleme mit java.sql.SQLException: ResultSet closed Datenbankprogrammierung 21
nrg Oracle java.sql.SQLException Ungültiger Vorgang bei schreibgeschützter Ergebnismenge Datenbankprogrammierung 0
N SQL-Statement SQLException: the '|' object Datenbankprogrammierung 3
N SQL-Statement SQLException: '' is not a valid name. Datenbankprogrammierung 7
Y java.sql.SQLException: [Microsoft][ODBC Driver Manager] Invalid cursor state Datenbankprogrammierung 2
H Derby/JavaDB SQLException wenn die Datenbank in eine Jar gepackt wurde. Datenbankprogrammierung 6
I java.sql.SQLException: No data found Datenbankprogrammierung 3
T java.sql.SQLException: unexpected end of statement Datenbankprogrammierung 2
H java.sql.SQLException: Access denied for user 'root'@'localhost' (using password : YES) Datenbankprogrammierung 1
D getConnection mit SQLException Datenbankprogrammierung 7
F SQLException fangen beim verbinden mit Hibernate Datenbankprogrammierung 17
D java.sql.SQLException Datenbankprogrammierung 3
S SQLException: No suitable driver bei DB2 Datenbankprogrammierung 4
J Einstellungen für die Ausnahme SQLException Datenbankprogrammierung 7
M java.sql.SQLException: Unable to open file Datenbankprogrammierung 2
M java.sql.SQLException: out of memory Datenbankprogrammierung 18
zilti java.sql.SQLException: Before start of result set Datenbankprogrammierung 2
C FM: java.sql.SQLException: Geschlossene Ergebnismenge: next Datenbankprogrammierung 7
A Problem: java.sql.SQLException Datenbankprogrammierung 5
I hilfe! java.sql.SQLException Datenbankprogrammierung 7
M java.sql.SQLException: No data found Datenbankprogrammierung 9
K MsAccess immer beim zweiten Update java.sql.SQLException Datenbankprogrammierung 28
C SQLException wenn String auf VARCHAR geschrieben wird Datenbankprogrammierung 10
G SQLException: Lässt sich der Fehler feststellen? Datenbankprogrammierung 10
R MySQL denies access to data source - java.sql.SQLException Datenbankprogrammierung 14
L SQLException --> Übersetzung nötig! Datenbankprogrammierung 2
G SQLException: No operations allowed after connection closed Datenbankprogrammierung 2
K java.sql.SQLException: Before start of result set Datenbankprogrammierung 2
Zrebna Noobfrage: Konvertierung von SQL-Datentyp 'timestamp with time zone' in Java-Datentyp Datenbankprogrammierung 3
I Hibernate Predicate mit IN Clause "Unaware how to convert value to requested type" Datenbankprogrammierung 0
ma095 value NULL- Datenbank Postgresql Spring - intellij community Datenbankprogrammierung 0
C Java MySQL check if value exists in database Datenbankprogrammierung 2
zhermann Data truncation: Incorrect date value: 'null' for column Datenbankprogrammierung 31
D MySQL Suche nach Max Value in einer Tabelle Datenbankprogrammierung 7
K Derby/JavaDB '<columnName>' is not a column in table or VTI '<value>'. Datenbankprogrammierung 12
AMStyles Kann Wert nicht speichern (MAX VALUE) Datenbankprogrammierung 9
L MySQL Column count doesn't match value count at row 1 Datenbankprogrammierung 9
E Data truncation Incorrect datetime value Datenbankprogrammierung 2
N suche embedded key-value-datenkank Datenbankprogrammierung 2
F Oracle Zeilenumbruch in DB-Value erkennen Datenbankprogrammierung 2
F Derby/JavaDB Exception - Cannot accept Null Value (help) Datenbankprogrammierung 10
R Hibernate Composite-ID mit Autogenerated Value Datenbankprogrammierung 3
M [HSQL] Numeric value out of range Datenbankprogrammierung 7
G [hibernate] different object with the same identifier value Datenbankprogrammierung 5
F column count doesn't match value count at row 1 Datenbankprogrammierung 6

Ähnliche Java Themen

Neue Themen


Oben