--

实际数据库、用户名,密码,主机账号,端口号均正确

提示如下:


异常如下:
------------------------------------------------------------------------------
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连接不到数据库的更多相关文章

  1. Nginx反向代理实现Tomcat+Jpress和halo

    一.利用Nginx反向代理Jpress+Tomcat 1.环境准备 服务器 IP地址 作用 系统版本 Proxy代理服务器 10.0.0.101 负载均衡Nginx Web服务器 Ubuntu2004 ...

  2. 真分布式SolrCloud+Zookeeper+tomcat搭建、索引Mysql数据库、IK中文分词器配置以及web项目中solr的应用(1)

    版权声明:本文为博主原创文章,转载请注明本文地址.http://www.cnblogs.com/o0Iris0o/p/5813856.html 内容介绍: 真分布式SolrCloud+Zookeepe ...

  3. JDBC数据源 使用JNDI连接池实现数据库的连接

    0.引言 许多Web应用程序需要通过JDBC驱动程序访问数据库,以支持该应用程序所需的功能.Java EE平台规范要求Java EE应用程序服务器为此目的提供一个DataSource实现(即,用于JD ...

  4. JeeSite如何正确连接SQL SERVER 数据库

    JeeSite如何正确连接SQL SERVER 数据库 jeesite介绍 感谢jeesite项目的作者thinkgem. 没有你我也不会更改这数据源非了恁大的劲,,,,嘻嘻嘻说多了. JeeSite ...

  5. 用JDBC连接SQL Server2017数据库

    用JDBC连接SQL Server2017数据库 2018年03月26日 17:40:47 yasinzhang 阅读数:8346 安装完SQL server2017之后,选择SQL 身份验证登录,可 ...

  6. spring boot(10)-tomcat jdbc连接池

    默认连接池 tomcat jdbc是从tomcat7开始推出的一个连接池,相比老的dbcp连接池要优秀很多.spring boot将tomcat jdbc作为默认的连接池,只要在pom.xml中引入了 ...

  7. python 使用pymssql连接sql server数据库

    python 使用pymssql连接sql server数据库   #coding=utf-8 #!/usr/bin/env python#------------------------------ ...

  8. NetBeans连接SQL server数据库教程

    不废话,直接开始 1.下载sqljdbc.jar 可以从微软中国官方网站下载 SQLJDBC微软中国 笔者提供一个网盘链接Sqljdbc.jar 4个压缩包视版本选择,SQL 2012 用sqljdb ...

  9. CI连接多个数据库

    参考http://codeigniter.org.cn/user_guide/database/connecting.html手册 首先,在database.php中设置多个数据库的连接信息,这里命名 ...

随机推荐

  1. PHP decoct() 函数

    实例 把十进制转换为八进制: <?phpecho decoct("30") . "<br>";echo decoct("10&quo ...

  2. PHP ucwords() 函数

    实例 把每个单词的首字符转换为大写: <?php高佣联盟 www.cgewang.comecho ucwords("hello world");?> 定义和用法 ucw ...

  3. intel:spectre&Meltdown侧信道攻击(三)—— raw hammer

    今天介绍raw hammer攻击的原理:这次有点“标题党”了.事实上,raw hammer是基于DRAM内存的攻击:所以理论上,只要是用了DRAM内存的设备,不论是什么cpu(intel.amd,或则 ...

  4. 代码规范、API设计等规范

    一份整理好了的规范文档,node后端开发用到 "规范是个好东西..." - 鲁迅 以下规范仅作为参考 1.代码规范 命名 尽量保证命名更加语义化 文件命名采用下划线命名法 // g ...

  5. Docker入坑指南之RUN

    总有一些场景,我们需要自己制作一个镜像,可以快速还原环境,又不想被其他因素干扰镜像的纯净,这个时候,就可以选择Docker了,启动便捷,镜像还原很快捷,除了上手不容易. 最近入坑研究了一番,小有心得, ...

  6. Flask官方文档学习-flask快速入门

    环境搭建 下载安装Python3:www.python.org 终端运行命令:python3 -m venv flask_dev,来创建虚拟环境 启用虚拟环境,终端使用命令 source /flask ...

  7. 《JavaScript语言入门教程》记录整理:运算符、语法和标准库

    目录 运算符 算数运算符 比较运算符 布尔运算符 二进制位运算符 void和逗号运算符 运算顺序 语法 数据类型的转换 错误处理机制 编程风格 console对象和控制台 标准库 Object对象 属 ...

  8. Navicat15安装教程

    本文内容皆为作者原创,如需转载,请注明出处:https://www.cnblogs.com/xuexianqi/p/12797170.html 一:简介 Navicat是一套快速.可靠的数据库管理工具 ...

  9. Android SP的具体内容

    过了这么久了,看看自己的园龄都17天了,一直在总结,从未缺席,我还是很开心的,踏踏实实的完成自己能学到的. 今天学习SP SP:全称SharedPreferences,别问我为啥知道,因为打了好多遍了 ...

  10. ORACLE在linux下的启动方法

    一.启动方法 方法1: Sql代码 cd $ORACLE_HOME/bin #进入到oracle的安装目录  ./dbstart #重启服务器  ./lsnrctl start #重启监听器 ---- ...