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:
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'
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.
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.
Mautic docker instance has this network configuration:



