# I can't connect my workbench to MariaDB

**URL:** <https://forum.virtualmin.com/t/i-cant-connect-my-workbench-to-mariadb/133909>\
**Category:** Webmin\
**Created:** [June 23, 2025, 6:17pm UTC](https://forum.virtualmin.com/t/i-cant-connect-my-workbench-to-mariadb/133909 "2025-06-23T18:17:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![mlicea](https://cdn.forum.virtualmin.com/letter_avatar_proxy/v4/letter/m/a698b9/32.png) [@mlicea](https://forum.virtualmin.com/u/mlicea)\
**Post date:** [June 23, 2025, 6:17pm UTC](https://forum.virtualmin.com/t/i-cant-connect-my-workbench-to-mariadb/133909/1 "2025-06-23T18:17:40Z")

</div>

| SYSTEM INFORMATION | |
| --- | --- |
| OS type and version | Ubuntu Linux 20.04.6 |
| Webmin version | 2.202 |

Hi, I have a question. I can’t connect my workbench to MariaDB. I tried using the user I use in Webmin to start the user assigned to my WordPress. I already added port 3306 to the firewall. But it tells me “failed to connect to MySQL.” Any ideas what’s going on? I want to connect to back up the database. Thanks.

---

<div class="post-metadata">

**Author:** ![Ilia](https://cdn.forum.virtualmin.com/user_avatar/forum.virtualmin.com/ilia/32/10185_2.png) [@Ilia](https://forum.virtualmin.com/u/Ilia)\
**Post date:** [June 23, 2025, 6:20pm UTC](https://forum.virtualmin.com/t/i-cant-connect-my-workbench-to-mariadb/133909/2 "2025-06-23T18:20:26Z")

</div>

Hello,

Thanks for reaching out!

There’s currently a bug in Virtualmin that prevents it from handling this correctly automatically.

You’ll need to manually set the database permissions under “Servers ⇾ MariaDB Database Server: Database Permissions” and make sure the correct **remote host** is specified.

---

<div class="post-metadata">

**Author:** ![system](https://cdn.forum.virtualmin.com/uploads/default/original/2X/c/cd96d761e326db4b2bef94886a639109bd7a8e76.svg) [@system](https://forum.virtualmin.com/u/system)\
**Post date:** [August 22, 2025, 6:20pm UTC](https://forum.virtualmin.com/t/i-cant-connect-my-workbench-to-mariadb/133909/3 "2025-08-22T18:20:30Z")

</div>

Closed on August 22, 2025, 6:20pm UTC

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
