

Once the dist-upgrade has completed, your machine will be on Ubuntu 20.04 LTS and continues to run MariaDB 10.4. I personally do this the old-fashioned way, by replacing the release name in the APT repository lists and running a cp sed -i "s/bionic/focal/g" sed -i "s/bionic/focal/g" apt-get apt-get dist-upgrade Now that we're having MariaDB 10.4 installed, which is also available in the MariaDB repositories for "focal", we can upgrade Ubuntu from bionic to focal.
#REPLACE MARIADB INSTALL#
If that's not the case, you need to select the new packages manually for the apt-get install galera-4 mariadb-server-10.4After the upgrade has completed successfully, start MariaDB systemctl start mariadb Step 2: Upgrade to Ubuntu 20.04 (focal) Make sure the output shows that the mariadb packages will be upgraded. Then stop MariaDB and launch the systemctl stop apt-get apt-get dist-upgrade Note: Obviously replace the mirror URL with your own preferred mirror. Time to upgrade MariaDB 10.3 to 10.4 by adding the new repository key and the new apt-get install apt-transport-https mkdir -p curl -o /etc/apt/keyrings/mariadb-keyring.pgp vi cat /etc/apt//mariadb.listĭeb bionic main Step 1: Upgrade to MariaDB 10.4 (oldest available version)Īs MariaDB 10.3 is meanwhile end of life, the oldest available release on the MariaDB package repositories is currently 10.4. So don't risk it, just do a backup of the databases, take a machine snapshot, etc. Upgrading OS or MariaDB? Taking a backup or a machine snapshot prior to such tasks shouldn't even be mentioned here - it should be common sense. Note: If you run a Galera cluster and have proper application balancing to the database nodes, you can even do this without application downtime.
#REPLACE MARIADB HOW TO#
In case you were running MariaDB 10.3 on a Ubuntu 18.04, here are some notes on how to properly run an upgrade of both. At the same time, support for MariaDB 10.3 ended a couple of weeks ago (in May 2023). In April 2023, the Linux long term support (LTS) of Ubuntu 18.04 (Bionic) ended. Published on June 20th 2023 - last updated on September 7th 2023 - Listed in MariaDB Database Linux Notes for double LTS upgrade: Ubuntu 18.04 to 22.04 and MariaDB 10.3 to 10.6
