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

时间:2019-11-24 17:06:21   收藏:0   阅读:1415

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了。

技术分享图片

 

 技术分享图片

 

 技术分享图片

 

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

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!