Comments - Troubleshooting Connection Issues
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.
Sorry, I can't figure out where to post this question and this seems as good as anywhere...
There appears to be an error with MariaDB when installed on Ubuntu 18.04 and 20.04. It does not happen with AlmaLinux. With a fresh install of either and apt install mariadb, if you run systemctl status mariadb, it says the following:
This implies that it is trying to run mysql_upgrade when it shouldn't be. This issue is further compounded when I install CyberPanel, which seems to change something such that it tries to run mysql_upgrade without the root password. That results in these messages
Websites work on the server, so MariaDB is working fine. So perhaps this is just an issue with systemctl status mariadb...
You can see more about all of this in the CyberPanel forum here: https://community.cyberpanel.net/t/mariadb-errors-on-ubuntu-20-04-only-when-using-cyberpanel/20345
You could edit /etc/mysql/debian-start to not run the function "upgrade_system_tables_if_necessary" (or edit the packages mysql.service unit file in /etc/systemd/system/ to not run the script by removing the line "ExecStartPost=/etc/mysql/debian-start" but this will stop two other checks from running as well...)
It means on upgrading the Mysql service to a newer version you may need to manually run an upgrade command to get functions etc working again. Not sure what else it may impact but I assume thats it. Its like this in the upstream mariaDB supplied .deb package
Annoying that it looks like an error on every start of the database but I think I will just leave it how it is