Help Database DBI connect failed

SYSTEM INFORMATION
OS type and version Debian Linux 12
Virtualmin version 7.30.3

Hello my friends

I have a problem every once in a while it stops for example every 24 hours Stop

To solve a problem, I restart the mysql program and it works again

I would like to solve a problem once and for all

Waiting for the solution and your help and thank you


A temporary fix would be adding something like max_connections=250 to /etc/mysql/mariadb.cnf
A better solution would be finding out which program on your system is misbehaving and opening all those connections. See MariaDB max connections - Stack Overflow