# How can check and connect mautic database connection?

**URL:** https://forum.mautic.org/t/how-can-check-and-connect-mautic-database-connection/37452
**Category:** Docker support
**Created:** [March 4, 2026, 10:36pm UTC](https://forum.mautic.org/t/how-can-check-and-connect-mautic-database-connection/37452 "2026-03-04T22:36:54Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![alexbs](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/alexbs/32/13375_2.png) [@alexbs](https://forum.mautic.org/u/alexbs)
#### Post date: [March 4, 2026, 10:36pm UTC](https://forum.mautic.org/t/how-can-check-and-connect-mautic-database-connection/37452/1 "2026-03-04T22:36:54Z")

</div>

**Description** : After configuring and starting up the one mautic docker image (mautic:7.0.1-20260303-apache) to run as mautic-web and setting up mariadb docker instance with an user with all rights on the created database and tested it. After setting up ‘MAUTIC\_DB\_HOST’, ‘MAUTIC\_DB\_USER’ and ‘MAUTIC\_DB\_PASSWORD’. On the start of the mautic it tries to connect to the database without success. These are the tries with different ips and methods:

```auto
We will continue to retry the connection.
 MySQL response contained error: mysqladmin: connect to server at 'jdbc:mariadb://192.168.1.60:3306' failed
 error: 'Plugin jdbc:mariadb could not be loaded: /usr/lib/x86_64-linux-gnu/libmariadb3/plugin/jdbc:mariadb.so: cannot open shared object file: No such file or directory'

```

```auto
You can check this by doing 'telnet 192.168.1.60:3306 3306'
We will continue to retry the connection.
MySQL response contained error: mysqladmin: connect to server at '192.168.1.60:3306' failed
error: 'Unknown server host '192.168.1.60:3306' (-2)'
Check that mariadbd is running on 192.168.1.60:3306 and that the port is 3306.

```

```auto
Check that mariadbd is running on 172.17.0.6:3306 and that the port is 3306.
 You can check this by doing 'telnet 172.17.0.6:3306 3306'
 We will continue to retry the connection.
 MySQL response contained error: mysqladmin: connect to server at '172.17.0.6:3306' failed
 error: 'Unknown server host '172.17.0.6:3306' (-2)'

```

At first I thought it was mariadb instance version so i downgraded the version image it to 10.11.16-jammy.

All these dockers are running on my UGREEN NAS on bridge mode. These are the mariadb network and port mapping and also how can i connect to the mariadb.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/4/45c5142a74ce8b14ad4d1fb3e33008c0063a633a.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/0/0f175e126f61732d0f877213c8a4cf18e5816333.png)

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/3/30d3dc2335007b6297224f8d96b7e4a12989efa0.png)

Mautic docker instance has this network configuration:

 ![image](https://us1.discourse-cdn.com/flex020/uploads/mautic/original/2X/2/2c94aa8a9af0f732e7a6063c01975b36d046e502.png)

---

<div class="post-metadata">

### Author: ![marcus42](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@marcus42](https://forum.mautic.org/u/marcus42)
#### Post date: [March 7, 2026, 7:12pm UTC](https://forum.mautic.org/t/how-can-check-and-connect-mautic-database-connection/37452/2 "2026-03-07T19:12:33Z")

</div>

> [@alexbs](#):
>
> `telnet 172.17.0.6:3306 3306`

That is wrong. This would be the proper cmd:  
`telnet 172.17.0.6 3306`

This bit informs you that you have an error in your IP  
`'Unknown server host '172.17.0.6:3306'`

The ‘proper’ error should be the following:  
`'Unknown server host '172.17.0.6'`

This leads me to think that you’ve type the IP including the port - what you shouldn’t do (simply use “172.17.0.6” instead of “172.17.0.6:3306”)
