I’m getting a similar error when trying to deploy the Liquibase scripts to an AWS Aurora RDS instance:
Unexpected error running Liquibase: Connection could not be created to jdbc:mysql://<DB_URL_HERE>:3306/cloudmapdb with driver com.mysql.cj.jdbc.Driver. 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.
I’m using Liquibase version 4.4.0 and MySQL jar version mysql-connector-java-8.0.25.jar. This was working successfully in the past, but I suddenly started getting the errors above last month. I’ve verified that the DB is up and running, and I’m able to connect via terminal using the traditional mysql -u username -p route.
Also, the scripts occasionally still run successfully, but when I try running them again they fail with the same error.