2017-09-13 93 views
0

我尝试从终端运行Liquibase:Liquibase:通信链路故障

命令:

[email protected] ~/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 

回答

0

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

相关问题