The problem is the compatibility of older versions of MySQL Connector/J with MySQL 8. You need to upgrade to either MySQL Connector/J 5.1.46 or – better – 8.0.11 (or a higher version).
More Related Contents:
- Hours and seconds are lost when storing a date in the database [closed]
- Connect Java to a MySQL database
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
- Solving a “communications link failure” with JDBC and MySQL [duplicate]
- MySQLSyntaxErrorException near “?” when trying to execute PreparedStatement
- Java: Insert multiple rows into MySQL with PreparedStatement
- Can we connect remote MySQL database in Android using JDBC? [closed]
- java.sql.SQLException Parameter index out of range (1 > number of parameters, which is 0) [closed]
- Cannot issue data manipulation statements with executeQuery()
- Handling MySQL datetimes and timestamps in Java
- java.sql.SQLException: Access denied for user ‘root’@’localhost’ (using password: YES)
- JDBC MySql connection pooling practices to avoid exhausted connection pool
- Getting java.sql.SQLException: Operation not allowed after ResultSet closed
- right syntax to use near ‘?’
- Running a .sql script using MySQL with JDBC
- com.mysql.jdbc.exceptions.jdbc4.CommunicationsException:Communications link failure [duplicate]
- Java JDBC Access denied for user [closed]
- Passing parameters to a JDBC PreparedStatement
- JDBC character encoding
- runtime error: java.lang.ClassNotFoundException: com.mysql.jdbc.Driver
- JDBC returning MySQLSyntaxError Exception with correct statement
- ‘0000-00-00 00:00:00’ can not be represented as java.sql.Timestamp error
- Problems reading/writing UTF-8 data in MySQL from Java using JDBC connector 5.1
- MySQL connector error “The server time zone value Central European Time” [duplicate]
- com.mysql.jdbc.PacketTooBigException
- Should a database connection stay open all the time or only be opened when needed?
- Converting mysql table to spark dataset is very slow compared to same from csv file
- A datetime equivalent in java.sql ? (is there a java.sql.datetime ?)
- How to connect to a remote MySQL database with Java?
- A persistent connection with JDBC to MySQL