我尝试从终端运行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 to host:
~/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 :(得分:0)
很难说,但可能是在您可以ping主机时,其他通信会被防火墙或类似设备阻止。您应该检查MySQL端口是否已打开。