I had InnoDB corruption and managed to start the server in read only mode and perform a fresh backup using innodb_force_recovery=5.
This way of starting the service puts the databases in read only mode, even deletion is disallowed.
Is there an official procedure to reset the whole server into a fresh installed (or at least "empty") version?
And in case there isn't, then what are the correct uninstall/reinstall steps to make sure there will be no remaining residues of data that could generate problems in the future?
mysql_install_dbbefore you start it up again - at least that is my experience on Redhat/Fedora/CentOS. – dbdemon Mar 15 '20 at 12:58/var/lib/dpkg/info/mariadb-server-10.3.postinst configureto recreate "mysql" database – Pascal Pixel Rigaux Jul 01 '22 at 08:01mysql_install_dband MariaDB didn't want to start on macOS for me. After running the command it went on fine. – dimitarvp Jan 05 '24 at 19:53