当我启动tomcat时就会出如下错误:
严重: Prototype
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:946)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:2822)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:777)
at com.mysql.jdbc.MysqlIO.secureAuth411(MysqlIO.java:3216)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1147)
at com.mysql.jdbc.Connection.createNewIO(Connection.java:2595)
at com.mysql.jdbc.Connection.<init>(Connection.java:1509)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:266)
at java.sql.DriverManager.getConnection(DriverManager.java:525)
at java.sql.DriverManager.getConnection(DriverManager.java:140)
at org.logicalcobwebs.proxool.DefaultConnectionBuilder.buildConnection(DefaultConnectionBuilder.java:39)
at org.logicalcobwebs.proxool.Prototyper.buildConnection(Prototyper.java:159)
at org.logicalcobwebs.proxool.Prototyper.sweep(Prototyper.java:102)
at org.logicalcobwebs.proxool.PrototyperThread.run(PrototyperThread.java:44)
我在网上查过Access denied for user 'root'@'localhost' (using password: YES)
这段错误信息,可是全是说怎么修改数据库密码的,但我只想启动我的项目,他不应该出这种错误啊。前提:它不影响我项目正常运行。只是一个劲的出这种错,还是无限循环的,过段时间出来次。只要一停止tomcat它就不会出。而且我mysql数据连接配置也对。密码都是相同的,用户名也是固定的root。应该怎么办啊。请高手指点下,麻烦详细些,本人新手。有些可能不太懂。如果能解释我在追加分数。谢了。