连接数据库报错:The last packet successfully received from the server was 67 milliseconds ago.
今天在阿里云上安装了一个mysql数据库,然后将本地代码的连接地址直接换成阿里云的地址,没想带连接报错:报错信息:com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failureThe last packet successfully received from the se...
·
今天在阿里云上安装了一个mysql数据库,然后将本地代码的连接地址直接换成阿里云的地址,没想带连接报错:
报错信息:
com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
The last packet successfully received from the server was 67 milliseconds ago. The last packet sent successfully to the server was 65 milliseconds ago.
网上搜了不少都说了,连接超时问题,可是试了都不行,最后慢慢试错,发现是
&useSSL=false
这句导致的,原因如下:
是本地的jdbc与数据库不一致导致的。
补充:-----------------------------------------------------------------------------------------
有不少小伙伴反映,原本是true不行,改成false可以,大家可以尝试下
更多推荐
已为社区贡献1条内容
所有评论(0)