Problem in connecting to MYSQL
Posted by: Karen Goh
Date: November 27, 2018 08:37AM

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&ampserverTimezone=UTC&useSSL=False";

I have tried many ways but even if I added a ; near to &amp 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.

Options: ReplyQuote


Subject
Written By
Posted
Problem in connecting to MYSQL
November 27, 2018 08:37AM
December 03, 2018 06:28PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.