MariaDB do not start

Hello,

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.

  • MariaDB : 11.8.5
  • Tumbleweed : updated

Some logs here (paste.opensuse.org) :

Do you have any idea how to fix it please ?

Thank you.

EDIT :
In the first log we can see :


Mariadbd: Can't lock aria control file '/var/lib/mysql/aria_log_control' for exclusive use, error: 11. Will retry for 30 seconds

But nothing runs :

medo@localhost:~> ps aux | grep -E 'mariadbd|mysqld' | grep -v grep
medo@localhost:~>

Show: sudo sytemctl status mariadb

Hello,

Do you have SElinux running?
Control it via “sestatus”

Regards
Philippe

Sorry. Forgot to provide this obious output.

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 ?

medo@localhost:~> sestatus
SELinux status:                 enabled
SELinuxfs mount:                /sys/fs/selinux
SELinux root directory:         /etc/selinux
Loaded policy name:             targeted
Current mode:                   enforcing
Mode from config file:          enforcing
Policy MLS status:              enabled
Policy deny_unknown status:     allowed
Memory protection checking:     actual (secure)
Max kernel policy version:      35

Thank you for your help.

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.

See bugzilla [SELinux] avc when starting mariadb after snapshot 20251212

# setenforce 0
# systemctl start mariadb
# setenforce 1

Hope this help
Philippe

1 Like

Thank you very much Philippe.
The problem was SELinux indeed. I am able to start MariaDB now and everythint works fine.

Thank you.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.