How to fix " [08S01] Communications link failure The last packet sent successfully to the server was 0 milliseconds ago. "

Hi this error is because you are running a MySQL version 5 or 8.0 and later. And your server is configured to use the protocol of TLS 1.2. So, you need to enable TLS Protocols.

  • Open Datagrip
  • Go to Properties
  • Data Sources > Advanced

In enabledTLSProtocol set the value:

TLSv1,TLSv1.1,TLSv1.2,TLSv1.3

Test connection. And should work!