Java / MySQL connection

cs413pro

New Member
Messages
3
Reaction score
0
Points
1
Hi all, I'm trying to access a MySQL database I've set up on my account using java however I'm having problems whenever I try to connect.

The code in java I have is:
Connection conn = DriverManager.getConnection("jdbc:mysql://cs413project.x10host.com:3306/cs413pro_db", "username", "password");

username and password are filled in, I've just removed them for this post.
The error I get is:

java.sql.SQLException: Access denied for user 'username'@'host86-160-72-196.range86-160.btcentralplus.com' (using password: YES)

I'm at a stump as how to fix this and would appreciate any help.
 

bdistler

Well-Known Member
Prime Account
Messages
3,534
Reaction score
196
Points
63
would appreciate any help
not sure what you are doing BUT...
Java is not enabled on x10hosting's free-hosting accounts

due to the large security risk - x10hosting's free-hosting accounts do not have remote MySQL database access (both incoming and outgoing from the account) - x10hosting's firewall blocks all remote database access
 

cs413pro

New Member
Messages
3
Reaction score
0
Points
1
not sure what you are doing BUT...
Java is not enabled on x10hosting's free-hosting accounts

due to the large security risk - x10hosting's free-hosting accounts do not have remote MySQL database access (both incoming and outgoing from the account) - x10hosting's firewall blocks all remote database access
Hi,

I'm not using x10hosting's free package. I upgraded today to premium hence why I was able to create a MySQL database. Is remote database access also blocked for premium members?

Thanks
 
Top