I have problem in fixing the String URL for connecting to MYSQL and I need help in the syntax.
MYSQL verion : 8.0.12
OS : Windows 10
Here's the error I am receiving :
Caused by: com.mysql.cj.exceptions.UnableToConnectException: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: Malformed database URL, failed to parse the connection string near ';serverTimezone=UTC&useSSL=False'.
Here's my String URL ;
public static final String URL ="jdbc:mysql://localhost/project?autoReconnect=true&serverTimezone=UTC&useSSL=False";
I have tried many ways but even if I added a ; near to & it will still gives me the same error.
It has been going like this for more than 1 week.
Hope someone can help me or offer me an alternative to do the connection.
Tks.
MYSQL verion : 8.0.12
OS : Windows 10
Here's the error I am receiving :
Caused by: com.mysql.cj.exceptions.UnableToConnectException: Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: Malformed database URL, failed to parse the connection string near ';serverTimezone=UTC&useSSL=False'.
Here's my String URL ;
public static final String URL ="jdbc:mysql://localhost/project?autoReconnect=true&serverTimezone=UTC&useSSL=False";
I have tried many ways but even if I added a ; near to & it will still gives me the same error.
It has been going like this for more than 1 week.
Hope someone can help me or offer me an alternative to do the connection.
Tks.