In the recent years MariaDB has become one of the most popular database servers. The MariaDB server is available under the terms of the GNU General Public License, version 2. It is created by the original developers of MySQL and is promised to stay open source.

Install MariaDB 10.4 on Ubuntu 19.04 Disco

To install MariaDB 10.4 on Ubuntu first you need to add the repository to the system. Ubuntu uses apt for package management. Apt stores a list of repositories or software packages in the file /etc/apt/sources.list or any other file with a .list extension in the same directory. Go to the downloads page of MariaDB Foundation website in order to setup the repository mirror you need. From the menu choose the distro, release, version and mirror.

The menu will generate a code to start the repository and PGP setting. Please notice that in my case I picked Lund University repository. You might want a repository that is closer to you geographically.

sudo apt-get install software-properties-common sudo apt-key adv --recv-keys --keyserver hkp:// 0xF1656F24C74CD1D8 sudo add-apt-repository 'deb [arch=amd64] disco main'

After the key is imported and repository set, you can start with the installation:

sudo apt update
sudo apt install mariadb-server mariadb-common mariadb-client

You are all set. After the installation MariaDB server starts automatically. You can check its status with the command:

systemctl status mariadb

Next step will be to secure the server.

Leave a comment

Your email address will not be published. Required fields are marked *