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

JDBC: Can't access DB that I can get with MySQL Workbench (5 replies)

$
0
0
I am having trouble connecting to my datasource using JDBC. I have a database server running on a bluehost machine, and I am giving myself remote IP access via my IP address.

On my client machine, I have MySQL Workbench, and some Java code. MySQL workbench is getting the connection, using the database that I would like it to. With the driver manager connection, I cannot specify my database, such as with a forward slash after the port # in the URL, or it will give a connect error.

I can get the connection with the same userid and password using Workbench or the driver manager, but with JDBC it doesn't want to give me access to the same database, I think.

When I try to execute this: "use database", I get:
Access denied for user 'userid'@'184.11.22.%' to database 'database'

Viewing all articles
Browse latest Browse all 884

Trending Articles