Communications link failure

Connection to MySql database failing,

The last packet sent successfully to the server was 0 milliseconds ago. The driver has not received any packets from the server.
at com.haulmont.studio.backend.ed.ddl.l.e(SourceFile:264)
at com.haulmont.studio.backend.ed.RegisteredEntitiesLoader.m(SourceFile:543)
at com.haulmont.studio.backend.ed.RegisteredEntitiesLoader.e(SourceFile:181)
at com.haulmont.studio.backend.ed.RegisteredEntitiesLoader.d(SourceFile:152)
at com.haulmont.studio.backend.ed.RegisteredEntitiesLoader.a(SourceFile:136)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74)
at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47)
at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322)
at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304)
at com.google.common.eventbus.EventBus.post(EventBus.java:275)
at com.haulmont.studio.backend.f.run(SourceFile:62)
at com.haulmont.studio.ui.app.App.a(SourceFile:490)
at com.vaadin.ui.UI.accessSynchronously(UI.java:1392)
at com.haulmont.studio.ui.app.App.accessSynchronously(SourceFile:487)
at com.haulmont.studio.ui.app.f.a(SourceFile:28)
at com.haulmont.studio.backend.e.c(SourceFile:58)
at com.haulmont.studio.backend.c.run(SourceFile:122)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at com.haulmont.studio.common.K.c(SourceFile:54)
at com.haulmont.studio.common.K.b(SourceFile:72)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.mysql.cj.jdbc.exceptions.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.
at com.mysql.cj.jdbc.exceptions.SQLError.createCommunicationsException(SQLError.java:590)
at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:57)
at com.mysql.cj.jdbc.ConnectionImpl.createNewIO(ConnectionImpl.java:1606)
at com.mysql.cj.jdbc.ConnectionImpl.(ConnectionImpl.java:633)
at com.mysql.cj.jdbc.ConnectionImpl.getInstance(ConnectionImpl.java:347)
at com.mysql.cj.jdbc.NonRegisteringDriver.connect(NonRegisteringDriver.java:219)
at java.sql.DriverManager.getConnection(DriverManager.java:664)
at java.sql.DriverManager.getConnection(DriverManager.java:208)
at com.haulmont.studio.backend.ed.ddl.l.c(SourceFile:284)
at com.haulmont.studio.backend.ed.ddl.l.e(SourceFile:241)
... 28 more
Caused by: com.mysql.cj.core.exceptions.CJCommunicationsException: Communications link failure

It’s a known problem for JetBrains IDEs with MySQL.
In the following topics some workarounds are described:

https://youtrack.jetbrains.com/issue/DBE-13313