通过Tomcat jpress连接不到数据库
--
实际数据库、用户名,密码,主机账号,端口号均正确
提示如下:
异常如下:
------------------------------------------------------------------------------
2020-08-29 17:27:28.959 ERROR com.zaxxer.hikari.pool.HikariPool - HikariPool-7 - Exception during pool initialization.
java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3933)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3869)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:864)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1707)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1217)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2189)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2220)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2015)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:768)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:385)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:323)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560)
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:81)
at io.jboot.db.datasource.HikariDataSourceFactory.createDataSource(HikariDataSourceFactory.java:61)
at io.jboot.db.datasource.DataSourceBuilder.createDataSource(DataSourceBuilder.java:64)
at io.jboot.db.datasource.DataSourceBuilder.build(DataSourceBuilder.java:43)
at io.jpress.core.install.DbExecuter.<init>(DbExecuter.java:63)
at io.jpress.core.install.InstallManager.init(InstallManager.java:55)
at io.jpress.web.install.InstallController.gotoStep3(InstallController.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.jfinal.aop.Invocation.invoke(Invocation.java:97)
at io.jpress.web.install.InstallInterceptor.intercept(InstallInterceptor.java:31)
at com.jfinal.aop.Invocation.invoke(Invocation.java:91)
at io.jpress.web.interceptor.JPressInterceptor.intercept(JPressInterceptor.java:60)
at com.jfinal.aop.Invocation.invoke(Invocation.java:91)
at io.jpress.web.interceptor.UTMInterceptor.intercept(UTMInterceptor.java:47)
at com.jfinal.aop.Invocation.invoke(Invocation.java:91)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:47)
at io.jpress.core.addon.interceptor.AddonInterceptorProcesser.intercept(AddonInterceptorProcesser.java:34)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.support.seata.interceptor.SeataGlobalTransactionalInterceptor.intercept(SeataGlobalTransactionalInterceptor.java:42)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.support.metric.JbootMetricInterceptor.intercept(JbootMetricInterceptor.java:43)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.support.shiro.JbootShiroInterceptor.intercept(JbootShiroInterceptor.java:34)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.support.jwt.JwtInterceptor.intercept(JwtInterceptor.java:40)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.web.validate.ParaValidateInterceptor.intercept(ParaValidateInterceptor.java:53)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.web.cors.CORSInterceptor.intercept(CORSInterceptor.java:42)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.components.limiter.LimiterInterceptor.intercept(LimiterInterceptor.java:50)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.support.sentinel.SentinelInterceptor.intercept(SentinelInterceptor.java:35)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.web.handler.JbootActionHandler.invokeInvocation(JbootActionHandler.java:212)
at io.jboot.web.handler.JbootActionHandler.handle(JbootActionHandler.java:123)
at io.jboot.web.handler.JbootHandler.doHandle(JbootHandler.java:46)
at io.jboot.web.handler.JbootHandler.handle(JbootHandler.java:36)
at io.jboot.web.handler.JbootFilterHandler.handle(JbootFilterHandler.java:45)
at io.jboot.components.gateway.JbootGatewayHandler.handle(JbootGatewayHandler.java:37)
at io.jpress.core.addon.handler.AddonHandlerProcesser.handle(AddonHandlerProcesser.java:32)
at io.jpress.web.handler.JPressHandler.handle(JPressHandler.java:98)
at io.jpress.web.sitemap.SitemapHandler.handle(SitemapHandler.java:42)
at io.jpress.core.install.InstallHandler.handle(InstallHandler.java:42)
at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:90)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
com.zaxxer.hikari.pool.HikariPool$PoolInitializationException: Failed to initialize pool: Access denied for user 'root'@'localhost' (using password: YES)
at com.zaxxer.hikari.pool.HikariPool.throwPoolInitializationException(HikariPool.java:595)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:581)
at com.zaxxer.hikari.pool.HikariPool.<init>(HikariPool.java:115)
at com.zaxxer.hikari.HikariDataSource.<init>(HikariDataSource.java:81)
at io.jboot.db.datasource.HikariDataSourceFactory.createDataSource(HikariDataSourceFactory.java:61)
at io.jboot.db.datasource.DataSourceBuilder.createDataSource(DataSourceBuilder.java:64)
at io.jboot.db.datasource.DataSourceBuilder.build(DataSourceBuilder.java:43)
at io.jpress.core.install.DbExecuter.<init>(DbExecuter.java:63)
at io.jpress.core.install.InstallManager.init(InstallManager.java:55)
at io.jpress.web.install.InstallController.gotoStep3(InstallController.java:104)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.jfinal.aop.Invocation.invoke(Invocation.java:97)
at io.jpress.web.install.InstallInterceptor.intercept(InstallInterceptor.java:31)
at com.jfinal.aop.Invocation.invoke(Invocation.java:91)
at io.jpress.web.interceptor.JPressInterceptor.intercept(JPressInterceptor.java:60)
at com.jfinal.aop.Invocation.invoke(Invocation.java:91)
at io.jpress.web.interceptor.UTMInterceptor.intercept(UTMInterceptor.java:47)
at com.jfinal.aop.Invocation.invoke(Invocation.java:91)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:47)
at io.jpress.core.addon.interceptor.AddonInterceptorProcesser.intercept(AddonInterceptorProcesser.java:34)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.support.seata.interceptor.SeataGlobalTransactionalInterceptor.intercept(SeataGlobalTransactionalInterceptor.java:42)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.support.metric.JbootMetricInterceptor.intercept(JbootMetricInterceptor.java:43)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.support.shiro.JbootShiroInterceptor.intercept(JbootShiroInterceptor.java:34)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.support.jwt.JwtInterceptor.intercept(JwtInterceptor.java:40)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.web.validate.ParaValidateInterceptor.intercept(ParaValidateInterceptor.java:53)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.web.cors.CORSInterceptor.intercept(CORSInterceptor.java:42)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.components.limiter.LimiterInterceptor.intercept(LimiterInterceptor.java:50)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.support.sentinel.SentinelInterceptor.intercept(SentinelInterceptor.java:35)
at io.jboot.web.fixedinterceptor.FixedInvocation.invoke(FixedInvocation.java:45)
at io.jboot.web.handler.JbootActionHandler.invokeInvocation(JbootActionHandler.java:212)
at io.jboot.web.handler.JbootActionHandler.handle(JbootActionHandler.java:123)
at io.jboot.web.handler.JbootHandler.doHandle(JbootHandler.java:46)
at io.jboot.web.handler.JbootHandler.handle(JbootHandler.java:36)
at io.jboot.web.handler.JbootFilterHandler.handle(JbootFilterHandler.java:45)
at io.jboot.components.gateway.JbootGatewayHandler.handle(JbootGatewayHandler.java:37)
at io.jpress.core.addon.handler.AddonHandlerProcesser.handle(AddonHandlerProcesser.java:32)
at io.jpress.web.handler.JPressHandler.handle(JPressHandler.java:98)
at io.jpress.web.sitemap.SitemapHandler.handle(SitemapHandler.java:42)
at io.jpress.core.install.InstallHandler.handle(InstallHandler.java:42)
at com.jfinal.core.JFinalFilter.doFilter(JFinalFilter.java:90)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:193)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:166)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:202)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:96)
at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:541)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:139)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:92)
at org.apache.catalina.valves.AbstractAccessLogValve.invoke(AbstractAccessLogValve.java:690)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:74)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:343)
at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:373)
at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:868)
at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1589)
at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
at java.lang.Thread.run(Thread.java:748)
Caused by: java.sql.SQLException: Access denied for user 'root'@'localhost' (using password: YES)
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:965)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3933)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:3869)
at com.mysql.jdbc.MysqlIO.checkErrorPacket(MysqlIO.java:864)
at com.mysql.jdbc.MysqlIO.proceedHandshakeWithPluggableAuthentication(MysqlIO.java:1707)
at com.mysql.jdbc.MysqlIO.doHandshake(MysqlIO.java:1217)
at com.mysql.jdbc.ConnectionImpl.coreConnect(ConnectionImpl.java:2189)
at com.mysql.jdbc.ConnectionImpl.connectOneTryOnly(ConnectionImpl.java:2220)
at com.mysql.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:2015)
at com.mysql.jdbc.ConnectionImpl.<init>(ConnectionImpl.java:768)
at com.mysql.jdbc.JDBC4Connection.<init>(JDBC4Connection.java:47)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.mysql.jdbc.Util.handleNewInstance(Util.java:425)
at com.mysql.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:385)
at com.mysql.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:323)
at com.zaxxer.hikari.util.DriverDataSource.getConnection(DriverDataSource.java:138)
at com.zaxxer.hikari.pool.PoolBase.newConnection(PoolBase.java:358)
at com.zaxxer.hikari.pool.PoolBase.newPoolEntry(PoolBase.java:206)
at com.zaxxer.hikari.pool.HikariPool.createPoolEntry(HikariPool.java:477)
at com.zaxxer.hikari.pool.HikariPool.checkFailFast(HikariPool.java:560)
... 68 more JFinal-4.9 action report -------- 2020-08-29 17:27:29 --------------------------
Url : GET /install/error
Controller : io.jpress.web.install.InstallController.(InstallController.java:1)
Method : error
Interceptor : io.jpress.web.interceptor.UTMInterceptor.(UTMInterceptor.java:1)
io.jpress.web.interceptor.JPressInterceptor.(JPressInterceptor.java:1)
io.jpress.web.install.InstallInterceptor.(InstallInterceptor.java:1)
通过Tomcat jpress连接不到数据库的更多相关文章
- Nginx反向代理实现Tomcat+Jpress和halo
一.利用Nginx反向代理Jpress+Tomcat 1.环境准备 服务器 IP地址 作用 系统版本 Proxy代理服务器 10.0.0.101 负载均衡Nginx Web服务器 Ubuntu2004 ...
- 真分布式SolrCloud+Zookeeper+tomcat搭建、索引Mysql数据库、IK中文分词器配置以及web项目中solr的应用(1)
版权声明:本文为博主原创文章,转载请注明本文地址.http://www.cnblogs.com/o0Iris0o/p/5813856.html 内容介绍: 真分布式SolrCloud+Zookeepe ...
- JDBC数据源 使用JNDI连接池实现数据库的连接
0.引言 许多Web应用程序需要通过JDBC驱动程序访问数据库,以支持该应用程序所需的功能.Java EE平台规范要求Java EE应用程序服务器为此目的提供一个DataSource实现(即,用于JD ...
- JeeSite如何正确连接SQL SERVER 数据库
JeeSite如何正确连接SQL SERVER 数据库 jeesite介绍 感谢jeesite项目的作者thinkgem. 没有你我也不会更改这数据源非了恁大的劲,,,,嘻嘻嘻说多了. JeeSite ...
- 用JDBC连接SQL Server2017数据库
用JDBC连接SQL Server2017数据库 2018年03月26日 17:40:47 yasinzhang 阅读数:8346 安装完SQL server2017之后,选择SQL 身份验证登录,可 ...
- spring boot(10)-tomcat jdbc连接池
默认连接池 tomcat jdbc是从tomcat7开始推出的一个连接池,相比老的dbcp连接池要优秀很多.spring boot将tomcat jdbc作为默认的连接池,只要在pom.xml中引入了 ...
- python 使用pymssql连接sql server数据库
python 使用pymssql连接sql server数据库 #coding=utf-8 #!/usr/bin/env python#------------------------------ ...
- NetBeans连接SQL server数据库教程
不废话,直接开始 1.下载sqljdbc.jar 可以从微软中国官方网站下载 SQLJDBC微软中国 笔者提供一个网盘链接Sqljdbc.jar 4个压缩包视版本选择,SQL 2012 用sqljdb ...
- CI连接多个数据库
参考http://codeigniter.org.cn/user_guide/database/connecting.html手册 首先,在database.php中设置多个数据库的连接信息,这里命名 ...
随机推荐
- PHP jdtogregorian() 函数
------------恢复内容开始------------ 实例 把格利高里历法的日期转换为儒略日计数,然后再转换回格利高里历法的日期: <?php$jd=gregoriantojd(6,20 ...
- PHP strval() 函数
strval() 函数用于获取变量的字符串值.高佣联盟 www.cgewang.com PHP 版本要求: PHP 4, PHP 5, PHP 7 语法 string strval ( mixed $ ...
- PHP tanh() 函数
实例 返回不同数的双曲正切: <?php高佣联盟 www.cgewang.comecho(tanh(M_PI_4) . "<br>");echo(tanh(0.5 ...
- intel:spectre&Meltdown侧信道攻击(二)
上面一篇介绍了spectre&meltdown基本原理和简单的demo方案,今天继续学习一下该漏洞发现团队原始的POC:https://spectreattack.com/spectre.pd ...
- 基于视频压缩的实时监控系统-sprint2采集端图像采集子系统设计
(1).初始化:a.初始化摄像头:b.注册事件到epoll (2).开始采集--->触发事件处理系统 (3).保存图像(方便测试) a.初始化摄像头 //初始化摄像头 1.获取驱动信息 2.设置 ...
- 不能错过的分布式ID生成器(Leaf ),好用的一批!
本文收录在个人博客:www.chengxy-nds.top,技术资料共享,同进步 不了解分布式ID的同学,先行去看<一口气说出 9种 分布式ID生成方式,面试官有点懵了>温习一下基础知识, ...
- redis(二)redis的主从模式和集群模式
redis(二)redis的主从模式和集群模式 主从模式 集群模式 主从模式 redis的主从模式,指的是针对多台redis实例时候,只存在一台主服务器master,提供读写的功能,同时存在依附在这台 ...
- C#LeetCode刷题之#26-删除排序数组中的重复项(Remove Duplicates from Sorted Array)
问题 该文章的最新版本已迁移至个人博客[比特飞],单击链接 https://www.byteflying.com/archives/3622 访问. 给定一个排序数组,你需要在原地删除重复出现的元素, ...
- 坚持第一天:HashMap和Hashtable的区别
其实,到底是用HashMap和Hashtable主要看需求, 1.它们俩都共同实现了:Map接口,但是Hashtable实现是基于Dictionary抽象类的,在java5的时候提供了Concurre ...
- Golang Gtk+3教程:开始
GTK+是一个控件工具包.每个通过GTK+创建的用户界面由一些控件组成. 控件是层级式的,window控件是主容器,通过在window中添加按钮.下拉菜单.输入字段等其他控件构成用户界面. 如果是复杂 ...