Comments - MariaDB troubles, only running after reboot, times out when trying restart, not stable when running.

5 years, 6 months ago Faustin Lammler

Hi Michael, sorry and yes I did not read well your answer that is a good workaround (but see bellow).

Disabling completely apparmor to install mariadb is not satisfactory from a security point of view (other program or services could be impacted) so we can not validate this answer fully.

And in my (too fast) response, I have put this link: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=865534

Where I explain a solution to disable only the problematic apparmor profile:

$ sudo ln -s /etc/apparmor.d/usr.sbin.mysqld /etc/apparmor.d/disable/
$ sudo apparmor_parser -R /etc/apparmor.d/usr.sbin.mysqld 

Verify:

$ sudo aa-status

Finalize mariadb-server upgrade:

$ sudo dpkg --configure mariadb-server

Regards, Faustin

 
5 years, 6 months ago Michael Rupp

I did not disable AppArmor. I paused it for the install of MariaDB then turned it back on again after the install.

AppArmor is holding some signature to Identify MySQL and it's erroneously keeping it alive when MariaDB is installed. Pausing it and restarting it after the install allowed it to drop the old reference and recognize MariaDB as the valid program for MySQL commands.

 
5 years, 5 months ago Faustin Lammler

Hi Michael,

thank you for this, I will compile an answer based on your solution and mine.

Let me know if you feel I am missing something.

Faustin

 
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.