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


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

 

 

 

 

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM