MariaDB crashed often for me. So I tried changing some of the values in MariaDB server configuration. Now I am getting the following error.
Job for mariadb.service failed because the control process exited with error code.
See “systemctl status mariadb.service” and “journalctl -xeu mariadb.service” for details.
MariaDB error message
The full MariaDB error message was : DBI connect failed : Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) ?
I think the OOM killer (out of memory) has been found as a culprit in the past for things seeming crashing out for no reason so this might be something to look at.
Do you have a backup of the original config? I don’t know if there are such things as stale sockets like stale lock files, but did you check to see if
The problem now I face is, I can’t turn MariaDB back on. I restarted the server, still no hope. Showing the same error:
Error! MariaDB is not running on your system - database list could not be retrieved.
MariaDB error messageThe full MariaDB error message was : DBI connect failed : Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’ (2) ?
When I click Start MariaDB, I get the following error
Failed to start database :
Job for mariadb.service failed because the control process exited with error code. See “systemctl status mariadb.service” and “journalctl -xeu mariadb.service” for details.
you will have to fix this from the command line I’m afraid, Webmin’s mysql module does not allow you to edit it’s configuration if the mysql server is not running
I didn’t manually edit the files. So it must be the UI. The set-variable=... syntax is deprecated and unsupported in modern MariaDB versions (10.11.x and above). Maybe the UI part is not updated for the latest syntax. (May be @Joe can clarify)
And for the second part, I still have to figure out what is causing the OOM.
It’s a Digital Ocean droplet with 4GB Ram. At times, the ram usage showed high in graphs. When I examined, mariaDB was the culprit. How can I know which virtual server is using that much DB resources?