择忆霖心 2017-04-30 14:40 采纳率: 96.7%
浏览 1004
已采纳

mysql数据库问题java问题

我感觉是mysql数据库问题,那个懂数据库的来告诉告诉我

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure

com.mysql.jdbc.exceptions.jdbc4.CommunicationsException: Communications link failure
关于这个问题,需要数据库调配置吗

  • 写回答

2条回答

  • unauthorized401 2017-04-30 14:53
    关注

    #贴下源码,这样其他人才可以帮你分析一下

    一般造成这个异常的情况有很多种,下面就简单的提示一些,希望对你有帮助。

    • IP address or hostname in JDBC URL is wrong.
    • Hostname in JDBC URL is not recognized by local DNS server.
    • Port number is missing or wrong in JDBC URL.
    • DB server is down.
    • DB server doesn't accept TCP/IP connections.
    • DB server has run out of connections.
    • Something in between Java and DB is blocking connections, e.g. a firewall or proxy.

    参考文章

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
  • ¥30 截图中的mathematics程序转换成matlab
  • ¥15 动力学代码报错,维度不匹配
  • ¥15 Power query添加列问题
  • ¥50 Kubernetes&Fission&Eleasticsearch
  • ¥15 報錯:Person is not mapped,如何解決?
  • ¥15 c++头文件不能识别CDialog
  • ¥15 Excel发现不可读取的内容
  • ¥15 关于#stm32#的问题:CANOpen的PDO同步传输问题
  • ¥20 yolov5自定义Prune报错,如何解决?