当前位置:网站首页>阿里云云数据库RDS版Exception during pool initialization
阿里云云数据库RDS版Exception during pool initialization
2022-07-27 11:03:00 【H_Dsheng】
阿里云云数据库RDS版Communications link failure大坑
这是个大坑。
之前11月都好好的,不知道现在为何会这样??
项目正常在idea中运行成功,打包成jar包或者war包发布出去就会报以下错误,导致项目连接失败。
log日志中关键log为:
ERROR com.zaxxer.hikari.pool.HikariPool - HikariPool-1 - Exception during pool initialization.
com.mysql.cj.jdbc.exceptions.CommunicationsException: Communications link failure
The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
在百度找了好多方法,比如设置useSSL=false
#serverTimezone: Asia/Shanghai
# useUnicode: true
# allowPublicKeyRetrieval: true
以及设置云数据库的参数wait_timeout和innactive_timeout的数值为更大,
都没有成功!
最后解决方案:
我直接在阿里云的RDS管理控制台登录数据库,然后tomcat-ui界面的manager app中启动这个war包,竟然start成功了(之前重试多次都不行)(直接restart tomcat服务也行,我在manager app中启动是因为我此时已经打开了这个界面)
运行成功图:
标志: Started SpringsunApplication in 13.924 seconds (JVM running for 41505.291)
这现在真的是一个大坑…
可能是阿里云数据库规则改了???(我一直都没动过这块的设置,11月之前都好好的,发布的war包也能运行)
我唯一想到的操作就是我周末有关闭阿里云服务器,最近我的服务器也有频繁被检测到对外攻击,百度了一下,发现了被黑进了一个定时脚本,导致CPU经常占用过高,从而被阿里云检测到认为是对外攻击,现已删除并封了定时任务中的那个IP。
但是我关闭阿里云服务器应该不涉及到阿里云云数据库的吧?这两个是独立的服务(数据库实例一直有在运行中)
而且以后我可能每start一次tomcat,我都需要去登录一次阿里云数据库面板??
Anyway,如果有人看到了或者知道了有更好的解决方案,麻烦留言告诉我一下哦~
边栏推荐
- 求不同采样周期下的传递函数有限零点
- JS-寄生组合式继承
- MATLAB画带延时系统的伯德图
- LeetCode 02: 剑指 Offer 58 - I. 翻转单词顺序(简单); T123. 验证回文串 ; T9. 回文数
- TapNet: Multivariate Time Series Classification with Attentional Prototypical Network
- LAN SDN hard core technology insider 25 looking forward to the future - RDMA (Part 2)
- Detailed explanation of hash table
- 暂用 Solo,博客选择困难
- [special topic] summary of RMQ question brushing with ST table
- Principle of control system based on feedback rate
猜你喜欢

Wilcoxon rank sum and signed rank

IDEA: Can‘t use Subversion command line client:svn 解决方案

MySQL数据库主从复制集群原理概念以及搭建流程

LNMP architecture setup (deploy discuz Forum)

Could not load dynamic library ‘libcudnn.so.8‘;

EfficientNet
![[unity entry program] creator kitfps: first person shooting 3D game](/img/2b/78b535973b2898f53752ceeb25ef01.png)
[unity entry program] creator kitfps: first person shooting 3D game

日本福岛废堆安全监视协议会认可排海计划“安全”

Newton Raphson iterative method

shell编程之免交互
随机推荐
N ¨UWA: Visual Synthesis Pre-training for Neural visUal World creAtionChenfei
Keil MDK compilation appears..\user\stm32f10x H (428): error: # 67: expected a "}" wrong solution
iptables防火墙
w.r.t. ; i.e.; etc.; e. G. what does it mean
JS-寄生组合式继承
Vscode removes style / syntax highlighting / code highlighting / black background when copying code
Solution of digital tube flash back after proteus8 professional version cracking
How to make a graph? Multiple subgraphs in a graph are histogram (or other graphs)
compute_class_weight() takes 1 positional argument but 3 were given
LNMP架构搭建(部署Discuz论坛)
Pytorch shows the summary like tensorflow
为什么TCP三次握手的时候ACK=Seq+1
Japan Fukushima waste dump safety monitoring agreement will recognize the "safety" of the sea discharge plan
The C programming language -- (2nd) -- Notes -- 4.11.2
Maker harmony OS application development training notes 01
LAN SDN hard core technology insider 25 looking forward to the future - RDMA (Part 2)
Could not load dynamic library ‘libcudnn.so.8‘;
Common power supply problems and solutions of Arduino
USB 网卡驱动数据流
LeetCode-SQL练习题总结(MySQL实现)