Install an old MariaDB version on Ubuntu

Do you need to install an old version of MariaDB on Ubuntu? Maybe you need to do some testing. Here’s how.

Visit https://mariadb.com/downloads/ and choose your package and OS. You’ll download a tar fie.

Extract the tar file with tar xf mariadb*.tar.

Change your working directory to the extracted directory. cd mariadb*debs

Set up your apt repository to install this version. sudo ./setup_repository

Install this version. sudo apt-get update && sudo apt-get -y install mariadb-server

Secure your installation. sudo mysql_secure_installation

And, that’s it.

1 thought on “Install an old MariaDB version on Ubuntu”

Leave a Comment