Quantcast
Channel: MySQL Forums - Connector/J, JDBC and Java
Viewing all articles
Browse latest Browse all 884

Problem in connecting to MYSQL (3 replies)

$
0
0
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.

Viewing all articles
Browse latest Browse all 884

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>