当前位置:网站首页>阿里云云数据库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,如果有人看到了或者知道了有更好的解决方案,麻烦留言告诉我一下哦~
边栏推荐
- Keil MDK编译出现..\USER\stm32f10x.h(428): error: #67: expected a “}“错误的解决办法
- Difference between verification and calibration
- 多家银行调整现金管理类理财产品申赎规则:申赎确认时效“T+0”变“T+1”
- PWM的原理和PWM波的产生
- Pytorch shows the summary like tensorflow
- Maker Hongmeng application development training notes 02
- compute_ class_ weight() takes 1 positional argument but 3 were given
- LNMP架构搭建(部署Discuz论坛)
- Why is ack=seq+1 when TCP shakes hands three times
- JUC框架 从Runnable到Callable到FutureTask 使用浅析
猜你喜欢

你真的会写二分查找吗——变种二分查找

Solution of digital tube flash back after proteus8 professional version cracking
Synchronous use reference of the new version of data warehouse (for beginners)

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

82. (cesium home) cesium points move on 3D models

源码编译安装LAMP

TLC549Proteus仿真&Sallen-Key滤波器&AD736Vrms到DC转换&Proteus查看51寄存器值

Newton-Raphson迭代法

求不同采样周期下的传递函数有限零点

Modelarts voice detection and text classification
随机推荐
ZABBIX custom monitoring items
剑指 Offer 笔记: T58 - II. 左旋转字符串
Difference between verification and calibration
Could not load dynamic library ‘libcudnn.so.8‘;
Detailed explanation of hash table
Sword finger offer notes: T53 - ii Missing numbers from 0 to n-1
npm踩坑
Matlab draws Bode diagram with time delay system
【机器学习-白板推导系列】学习笔记---条件随机场
Sword finger offer notes: t57 - ii Continuous positive sequence with sum s
Newton-Raphson迭代法
w.r.t. ; i.e.; etc.; e. G. what does it mean
SQL statement learning and the use of pymysql
哈希表 详细讲解
[special topic] summary of RMQ question brushing with ST table
[machine learning whiteboard derivation series] learning notes --- conditional random fields
Firewalld防火墙
局域网SDN技术硬核内幕 11 云网融合CP的关键——层次化端口绑定
torch‘ has no attribute ‘inference_ mode‘
[machine learning whiteboard derivation series] learning notes - probability graph model and exponential family distribution