【问题标题】:Liquibase: Communications link failureLiquibase:通信链路故障
【发布时间】:2017-09-13 19:54:24
【问题描述】:

我尝试从终端运行 Liquibase:

命令:

user@Host ~/Development/Liquibase $ java -jar liquibase.jar --changeLogFile=ChangeLog/create.xml --username=root --password=Pass123 --url=jdbc:mysql://192.168.1.8:3306/Semafor --classpath=lib/mysql-connector-java-5.1.44-bin.jar update
Unexpected error running Liquibase: 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.

Ping 到主机:

~/Documents/Development/Liquibase $ ping 192.168.1.8
PING 192.168.1.8 (192.168.1.8) 56(84) bytes of data.
64 bytes from 192.168.1.8: icmp_seq=1 ttl=64 time=1.29 ms

【问题讨论】:

    标签: terminal liquibase


    【解决方案1】:

    很难说,但可能是当您可以 ping 主机时,其他通信被防火墙或类似设备阻止。您应该检查 MySQL 端口是否打开。

    【讨论】:

      猜你喜欢
      • 2019-11-30
      • 2012-05-27
      • 2018-02-17
      • 2012-10-14
      • 2011-08-12
      • 2012-02-21
      • 2014-12-31
      • 2011-02-28
      • 2020-04-24
      相关资源
      最近更新 更多