Author Message
TCSLtd
Joined: Sep 11, 2019
Messages: 69
Offline
Hi

I am trying to connect mysql database. I have copied the jar file in lib folder. In database configuration , when I add the data source and test the connection, it gives the following exception

Connection test failed - Cannot load connection class because of underlying exception: com.mysql.cj.exceptions.WrongArgumentException: Failed to parse host:port pair.

I have given the connection url as:

jdbc:mysql://127.0.0.1:3306;databaseName=instore; (where instore is the name of the database)


Plesae help about the exception that is coming

Thanks
Navneet
WilsonYu
Joined: Nov 6, 2013
Messages: 3950
Offline
It seems the URL format is the problem. You should Google it and verify.
frade
Joined: Dec 1, 2014
Messages: 49
Offline
for mysql:

jdbc:mysql://xxx.xx.xxx.xxx:3306/database?connectTimeout=60000&socketTimeout=60000
Go to:   
Mobile view