DBeaver error Communication link failure
Help! DBeaver fails to connect to local MySQL database with the error “Communication link failure”.
The problem isn’t with DBeaver, in fact, if you installed another MySQL GUI tool, this issue would still occur.
The solution below is for Linux systems and Windows systems running WSL. This post also assumes you already have the correct database drivers installed and have already created the MySQL connection.
At the bottom of the file add the following lines:
[mysqld] port=3306 # or any other port bind-address=0.0.0.0
Now restart MySQL:
Remember to update your connect within DBeaver to the same port you specified above. DBeaver will connect on port 3306 by default.