Programster's Blog

Tutorials focusing on Linux, programming, and open-source

Ubuntu 14.04 - Install MariaDB 10.1

The following script will install MariaDB as an apt repository (for automatic updates), using DigitalOcean UK as a mirror. Go here if you want to use a different mirror.

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver \
hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db

echo '# MariaDB 10.1 repository list - created 2015-11-30 10:41 UTC
# http://mariadb.org/mariadb/repositories/
deb [arch=amd64,i386] http://lon1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu trusty main
deb-src http://lon1.mirrors.digitalocean.com/mariadb/repo/10.1/ubuntu trusty main' \
| sudo tee /etc/apt/sources.list.d/MariaDB.list

sudo apt-get update
sudo apt-get install mariadb-server -y
Last updated: 16th August 2018
First published: 16th August 2018