A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Node.js in Action
this week in the
db connection problem
Joined: Sep 23, 2004
Oct 11, 2004 05:24:00
In a jsp application, I�m trying to conect to the application�s db (MySQL) by:
// jsp file
atv = new YYY.Atividade();
public void criaConexaoBD()throws
driver = "com.mysql.jdbc.Driver";
String url = "jdbc:mysql://188.8.131.52/mdb1";
this.conexaoBanco = DriverManager.getConnection(url, "root", "");
this.v_statement = this.conexaoBanco.createStatement();
I�m getting this server (
v. 5.0) message:
: Invalid authorization specification, message from server: "Access denied for user: 'root'@'egdesenvolv.globoprdom.com.br' (Using password: NO)" .
Even using a password or changing the user i�m getting the same trouble...I know that if i use
the connection work�s...
Does somebody know�s what�s wrong?
Thank�s for your attention,
[ October 11, 2004: Message edited by: Rafael Castro Fagundes ]
Joined: Aug 15, 2004
Oct 11, 2004 06:09:00
i think it is something about MYSQL Driver. see the specification of MYSQL Driver. may be it differs when your DB is remote.
Author and ninkuma
Joined: Jan 10, 2002
Oct 11, 2004 09:21:00
Since this is much more about
enclosing it, I'm moving this along to the JDBC forum.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: db connection problem
Cannot open connection issue
No suitable driver found
JNDI problem for getting connection from a pool - Tomcat 4.1.18
Basic instructions for setting up/running mySQL
Properties file for DB connection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014