MySQL Forums
Forum List  »  Connector/JDBC and Java

Connection via SQuirreL works but via own app don't
Posted by: Dimitar Robev
Date: October 20, 2017 02:38PM

Hey guys,

sorry for my broken english, not a native speaker :)

Here is my problem:
I try to connect via JDBC to a DB hosted on a MySQL server (Version: 5.6.37). I don't host the server and can't change any server configs.
When I try to connect using SQuirreL everything works as expected. I get access to the DB.
When I try to connect via self-written app via my IDE (eclipse) I get an Caused by: java.sql.SQLException: Access denied for user ... (using password: YES)

I'm using HikariCP to manage the connections. Tried also non connection pool aproach via DriverManager.getConnection. Both times the same.

The driver I'm using is mysql-connector-java-5.1.44-bin.jar

I'm thankful for every help.

Cheers!

Options: ReplyQuote


Subject
Written By
Posted
Connection via SQuirreL works but via own app don't
October 20, 2017 02:38PM


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.