Re: MySQL/Mariadb stopped working after recent updates Reply #15 – 19 July 2022, 01:57:48 Quote from: nous – on 18 July 2022, 10:24:41Have you paid attention to the post install/upgrade messages?Code: [Select]:: You need to initialize the MariaDB data directory prior to starting the service. This can be done with mariadb-install-db command, e.g.: mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysqlCode: [Select]:: MariaDB was updated to a new feature release. To update the data run: mariadb-upgrade -u root -p && restart serviceYes, for sure. As I said, mysql was working normally for weeks, then this error began
Re: MySQL/Mariadb stopped working after recent updates Reply #16 – 19 July 2022, 12:14:17 Oh, my bad, I thought I was responding to @anoki. See https://bbs.archlinux.org/viewtopic.php?id=276839[EDIT] Just upgraded a system and the post-update message says this exact thing. Users should ruin mariadb-upgrade BEFORE restarting the service or rebooting. Never skip reading the upgrade messages. Last Edit: 19 July 2022, 12:52:15 by nous
Re: MySQL/Mariadb stopped working after recent updates Reply #17 – 19 July 2022, 13:40:33 Quote from: nous – on 18 July 2022, 10:24:41Have you paid attention to the post install/upgrade messages?Code: [Select]:: You need to initialize the MariaDB data directory prior to starting the service. This can be done with mariadb-install-db command, e.g.: mariadb-install-db --user=mysql --basedir=/usr --datadir=/var/lib/mysqlCode: [Select]:: MariaDB was updated to a new feature release. To update the data run: mariadb-upgrade -u root -p && restart serviceThanks, this solved my problem.However, when I check mariadb status:Code: [Select]$ sudo rc-service mariadb status * status: crashedAny help is appreciated. Last Edit: 19 July 2022, 14:23:23 by anoki