This is a weird error that I am seeing while running a liquibase script. It seems to happen intermittently but can’t get rid of it.
I realized that I was able to get around it by making sure that no active connections to the mysql instance were present.
Run liquibase script->runs fine
Connect to mysql db from another window using command line or sequel pro
Run liquibase script from first window …you see this error.
"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."
Any ideas on what is the root cause of this?