Debian10: Upgrade MariaDB 10.3 to 10.5

Post Reply
User avatar
myVesta
Site Admin
Posts: 756
Joined: Fri Jun 19, 2020 9:59 am

This is the tutorial Debian10, for upgrading MariaDB 10.3 to 10.5.

First, if you have /home/scanps.php file (you probably don't have it), disable cron.

Code: Select all

crontab -e
# put comment on the beginning of 'scanps' cron if you have it
Now fully upgrade system - read viewtopic.php?f=28&t=270 before doing this.

Code: Select all

apt-get update
apt-get -y --with-new-pkgs upgrade
apt-get -y dist-upgrade
Set up apt repo:

Code: Select all

apt install curl apt-transport-https wget -y
wget https://downloads.mariadb.com/MariaDB/mariadb_repo_setup
chmod +x mariadb_repo_setup
./mariadb_repo_setup --mariadb-server-version="mariadb-10.5"
cp /etc/mysql/mariadb.cnf /etc/mysql/mariadb.cnf-backup
Now let's do main upgrade process:

Code: Select all

apt-get update
apt-get -y --with-new-pkgs upgrade
apt-get -y dist-upgrade
apt install -y mariadb-client-10.5 mariadb-server-10.5

At the end, re-download latest version of 'scanps' (if you have /home/scanps.php file)

Code: Select all

wget -nv -O /home/scanps.php https://c.myvestacp.com/tools/scanps/scanps.php
Re-enable it in cron:

Code: Select all

crontab -e
# uncomment 'scanps' cron if you have it

Tags:
Post Reply