首页 > 数据库技术 > 详细

Kubernetes权威指南 中 com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database 的错误

时间:2019-11-24 17:06:21      阅读:1415      评论:0      收藏:0      [点我收藏+]

Kubernetes权威指南 中第一章 从一个简单的例子开始中

会出现这样的错误com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database ,

经查找因为docker mysql镜像的版本的问题。

网上有人说5.6可以运行,但是我这里还是不行,

Error:com.mysql.jdbc.exceptions.jdbc4.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.

5.6的版本还是有错误,后来升级到5.7 就OK了。

技术分享图片

 

 技术分享图片

 

 技术分享图片

 

Kubernetes权威指南 中 com.mysql.jdbc.exceptions.jdbc4.MySQLNonTransientConnectionException: Could not create connection to database 的错误

原文:https://www.cnblogs.com/13579net/p/11922689.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!