File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Elasticsearch in Action
this week in the
JDBC and Relational Databases
db connection problem
Joined: Sep 23, 2004
Oct 11, 2004 05:24:00
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://18.104.22.168/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
than the JSP enclosing it, I'm moving this along to the JDBC forum.
Asking smart questions
Books by Bear
subject: db connection problem
Basic instructions for setting up/running mySQL
No suitable driver found
JNDI problem for getting connection from a pool - Tomcat 4.1.18
Cannot open connection issue
Properties file for DB connection
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015