# 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.

**URL:** <https://forum.liquibase.org/t/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/3473>\
**Category:** General Discussion\
**Created:** [January 14, 2017, 1:36am UTC](https://forum.liquibase.org/t/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/3473 "2017-01-14T01:36:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![JohnSmith](https://avatars.discourse-cdn.com/v4/letter/j/d9b06d/32.png) [@JohnSmith](https://forum.liquibase.org/u/JohnSmith)\
**Post date:** [January 14, 2017, 1:36am UTC](https://forum.liquibase.org/t/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/3473/1 "2017-01-14T01:36:00Z")

</div>

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.

For example:

Run liquibase script-\>runs fine

Connect to mysql db from another window using command line or sequel pro&nbsp;

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?

---

<div class="post-metadata">

**Author:** ![bobo135](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@bobo135](https://forum.liquibase.org/u/bobo135)\
**Post date:** [July 16, 2021, 6:53pm UTC](https://forum.liquibase.org/t/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/3473/2 "2021-07-16T18:53:46Z")

</div>

Hey John, were you able to resolve this issue? I’m getting the same error message intermittently when trying to run the Liquibase scripts.

---

<div class="post-metadata">

**Author:** ![rakhi](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/rakhi/32/288_2.png) [@rakhi](https://forum.liquibase.org/u/rakhi)\
**Post date:** [July 19, 2021, 10:25am UTC](https://forum.liquibase.org/t/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/3473/3 "2021-07-19T10:25:34Z")

</div>

Hi @bobo135

Could you please help us with more details about the issue you are facing? Also the Liquibase version you are using.

Thanks!  
Rakhi Agrawal

---

<div class="post-metadata">

**Author:** ![bobo135](https://avatars.discourse-cdn.com/v4/letter/b/7ea924/32.png) [@bobo135](https://forum.liquibase.org/u/bobo135)\
**Post date:** [August 10, 2021, 6:58pm UTC](https://forum.liquibase.org/t/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/3473/4 "2021-08-10T18:58:07Z")

</div>

Hi @rakhi,

I’m getting a similar error when trying to deploy the Liquibase scripts to an AWS Aurora RDS instance:

```auto
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.

Thanks,  
Boris

---

<div class="post-metadata">

**Author:** ![anujjain5699](https://avatars.discourse-cdn.com/v4/letter/a/ecae2f/32.png) [@anujjain5699](https://forum.liquibase.org/u/anujjain5699)\
**Post date:** [November 14, 2024, 5:02am UTC](https://forum.liquibase.org/t/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/3473/5 "2024-11-14T05:02:36Z")

</div>

any solution @JohnSmith@bobo135 . I face same similar issue
