Few weeks ago I installed LAMP server in order to start Wordpress in local environnement.
Everything was ok. Now, MariaDB refuse to start. Probably after an updade.
medo@localhost:~> sudo systemctl status mariadb
× mariadb.service - MariaDB database server
Loaded: loaded (/usr/lib/systemd/system/mariadb.service; enabled; preset: disabled)
Active: failed (Result: exit-code) since Sat 2025-12-20 12:42:53 CET; 5h 5min ago
Invocation: e62c7f7716ef4390b889c59e2139b1fb
Docs: man:mysqld(8) systemd (Linux) | Server | MariaDB Documentation
Process: 37711 ExecStartPre=/usr/libexec/mysql/mysql-systemd-helper install (code=exited, status=0/SUCCESS)
Process: 37718 ExecStartPre=/usr/libexec/mysql/mysql-systemd-helper upgrade (code=exited, status=1/FAILURE)
CPU: 640ms
déc. 20 12:41:52 localhost.localdomain mysql-systemd-helper[37718]: Trying to run upgrade of MySQL databases…
déc. 20 12:41:52 localhost.localdomain mysql-systemd-helper[37718]: Stale files from previous upgrade detected, cleaned them up
déc. 20 12:41:52 localhost.localdomain mysql-systemd-helper[37718]: Running protected MySQL…
déc. 20 12:41:52 localhost.localdomain mysql-systemd-helper[37718]: Waiting for MySQL to start
déc. 20 12:41:52 localhost.localdomain mysql-systemd-helper[37737]: /usr/sbin/mysqld: Deprecated program name. It will be removed in a future release, use ‘/usr/sbin/mariadbd’ instead
déc. 20 12:42:53 localhost.localdomain mysql-systemd-helper[37718]: MySQL is still dead
déc. 20 12:42:53 localhost.localdomain mysql-systemd-helper[37718]: MySQL didn’t start, can’t continue
déc. 20 12:42:53 localhost.localdomain systemd[1]: mariadb.service: Control process exited, code=exited, status=1/FAILURE
déc. 20 12:42:53 localhost.localdomain systemd[1]: mariadb.service: Failed with result ‘exit-code’.
déc. 20 12:42:53 localhost.localdomain systemd[1]: Failed to start MariaDB database server.
Here is SELinux state. But what is the relation with SELinux and MariaDB ?
I had a problem with an uppdate of mariadb wich failed due to SELinux
The workaround is to use setenforce to set selinux to prermissive mode
restart Mariadb check that the update of mariadb occurs without errrors and reset selinux to enforcing mode.