环境是ubuntuserver12.04+jkd7+tomcat7+mysql5已搭建好.mysql成功启动,可以外部远程连接。但是app(是一款运行在微信内的微网站)还是跑不起来。收到一下错误:java.sql.SQLException:Accessdeniedforuser'root'@'localhost'(usingpassword:YES)求大家提供解决办法,谢谢!这款应用的开发公司不肯告诉我部署方法,每次重新部署都得找它们,太气人了~~只好自己动手。全部提示:HTTPStatus500-typeExceptionreportmessagedescriptionTheserverencounteredaninternalerror()thatpreventeditfromfulfillingthisrequest.exceptionorg.hibernate.exception.GenericJDBCException:Cannotopenconnectionorg.hibernate.exception.SQLStateConverter.handledNonSpecificException(SQLStateConverter.java:126)org.hibernate.exception.SQLStateConverter.convert(SQLStateConverter.java:114)org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:66)org.hibernate.exception.JDBCExceptionHelper.convert(JDBCExceptionHelper.java:52)org.hibernate.jdbc.ConnectionManager.openConnection(ConnectionManager.java:449)......java.sql.SQLException:Accessdeniedforuser'root'@'localhost'(usingpassword:YES)com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)com.mysql.jdbc.SQLError.createSQLException(SQLError.java:956)com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3536)com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3468)com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:917)com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3974)com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1282)com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2142)com.mysql.jdbc.ConnectionImpl.(ConnectionImpl.java:773)com.mysql.jdbc.JDBC4Connection.(JDBC4Connection.java:46)sun.reflect.NativeConstructorAccessorImpl.newInstance0(NativeMethod)sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)java.lang.reflect.Constructor.newInstance(Constructor.java:534)com.mysql.jdbc.Util.handleNewInstance(Util.java:406)com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.jav......
大话西游666
相关分类