Comments - Upgrading from MariaDB Galera Cluster 10.0 to MariaDB 10.1 with Galera Cluster

4 years, 8 months ago Claudio Kuenzler

Following the upgrade procedure step by step I cam across an issue on Ubuntu (and therefore also Debian): The installation of the new packages will automatically start MariaDB. At that point the configs in /etc/mysql/* were not adjusted. To better handle this, it should be noted that automatic daemon starts should be rpevented. A quick and easy way to do is is by using the policy-rc.d:


tee /usr/sbin/policy-rc.d <<EOF
!/bin/sh exit 101 
EOF 

chmod +x /usr/sbin/policy-rc.d

Once the installation of the packages is done, the configs can be adjusted and then MariaDB can be started as outlined in the guide. Afterwards /usr/sbin/policy-rc.d can be removed again.

It should also be noted that mysql_upgrade is not really necessary on default Ubuntu/Debian systems as the included /etc/mysql/debian-start script already does a mysql_upgrade during startup.

 
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.