mysqldump -u root -p --all-databases > databasedump.sql
apt update
apt upgrade
apt-get install mariadb-server
systemctl daemon-reload
curl -LsS https://r.mariadb.com/downloads/mariadb_repo_setup | sudo bash -s -- --mariadb-server-version="mariadb-10.11"