0
votes

so i've been trying to etablish jdbc connection from this host, but this what happens

enter image description here

Here's the error message:

Cannot establish a connection to jdbc:mysql://sinarkaryanusantara.com:3306/sinarkar_db_kasir?zeroDateTimeBehavior=convertToNull using com.mysql.jdbc.Driver (Access denied for user 'user'@'address' (using password: YES))

1
Thanks for sharing your id and password on the internet.K.Nicholas

1 Answers

1
votes

You will have to configure SSL to connect with other domain database. without SSL you can only use localhost database with jdbc.

after configuration

use this to connect with database

jdbc:mysql://sinarkaryanusantara.com:3306/sinarkar_db_kasir?zeroDateTimeBehavior=convertToNull&verifyServerCertificate=false&useSSL=true&requireSSL=true