2017-09-13 119 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端口是否打開。

相關問題