In order to use the tool module in DBeaver, We should install MySQL/MariaDB local client in the server. for that install the client
For MySQL
sudo apt install -y mysql-client
For MariaDB
sudo apt install -y mariadb-client
Restart the MySQL/MariaDB
sudo systemctl restart mysql
Add the path in DBeaver connection