Problem connecting to remote mysql database
Posted
by user361024
on Stack Overflow
See other posts from Stack Overflow
or by user361024
Published on 2010-06-08T04:40:08Z
Indexed on
2010/06/08
4:42 UTC
Read the original article
Hit count: 152
I am trying to connect to a mysql db on a shared server. I am using a java application to make the connection. Problem doesn't happen when I connect to localhost db.
URL = "jdbc:mysql://SHARED HOST IP:3306/DBNAME"; USER = "dbUSER"; PASS = "dbPASS";
Connection conn = DriverManager.getConnection(URL, USER, PASS);
java.sql.SQLException: Access denied for user 'DBUSER'@'mycomputersIP???' (using password: YES)
It is strange that it says denied for dbuser@ mycomputersip instead of dbuser@sharedhostIP
Is there a setting on my wireless router that is screwing things up?
© Stack Overflow or respective owner