Invalid autho spec": Access denied for user
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Dophin_Soup
Posted On:   Sunday, December 29, 2002 09:30 PM

Dear all, I try to connect mysql3.2.3.54 using TC4.1.12, mysql2.0.14 jdbc driver and place it at /common/lib. I face the following problem: DBCP borrowObject failed: java.sql.SQLException: Invalid authorization specification: Access denied for user: 'javauser@user' (Using password: YES) org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Invalid authorization specification: Access denied for user: 'javauser@dophin' (Using password: YES) at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85) at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184) at org.apache.commons.pool.im   More>>

Dear all,



I try to connect mysql3.2.3.54 using TC4.1.12, mysql2.0.14 jdbc driver and place it at /common/lib. I face the following problem:



DBCP borrowObject failed: java.sql.SQLException: Invalid authorization specification: Access denied for user: 'javauser@user' (Using password: YES)
org.apache.commons.dbcp.DbcpException: java.sql.SQLException: Invalid authorization specification: Access denied for user: 'javauser@dophin' (Using password: YES)

at org.apache.commons.dbcp.DriverConnectionFactory.createConnection(DriverConnectionFactory.java:85)

at org.apache.commons.dbcp.PoolableConnectionFactory.makeObject(PoolableConnectionFactory.java:184)

at org.apache.commons.pool.impl.GenericObjectPool.borrowObject(Unknown Source)

at org.apache.commons.dbcp.AbandonedObjectPool.borrowObject(AbandonedObjectPool.java:117)

at org.apache.commons.dbcp.PoolingDataSource.getConnection(PoolingDataSource.java:110)

at org.apache.commons.dbcp.BasicDataSource.getConnection(BasicDataSource.java:312)

at foo.DBTest.init(DBTest.java:18)

at org.apache.jsp.test_jsp._jspService(test_jsp.java:48)

at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:136)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:204)

at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:289)

at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:240)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)

at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:247)



and there are more error code. In fact I want to ask why I connect to javauser@user , I want to connect to javauser@localhost. Even I use root to connect, it just connect to root@user using the URL like "jdbc:mysql://localhost:3306/ " at my server.xml. I also use "jdbc:mysql://127.0.0.1:3306/ " but still can't connect to @localhost. Why?? Please help me?



Thanks and regards,

Dophin

   <<Less
About | Sitemap | Contact