No connection with password
Hi,
I want to connect to a mysql database with JSP. When I connect as an user without a password, the connection works. When I connect as an user who needs a password I get following error message:
java.sql.SQLException: Communication link failure: null
I use:
Apache Tomcat 5.5.4 Server
MySQL 4.0.14
JRE 1.5.0_01
the code:
Class.forName("org.gjt.mm.mysql.Driver");
cn = DriverManager.getConnection("jdbc:mysql://localhost/testdb", "testuser", "test");
I hope someone can help me.
thanks,
Denny
Subject
Written By
Posted
No connection with password
May 26, 2005 06:08AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.