Here are the commands to run to add MariaDB to your system:
sudo apt-get install python-software-properties
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo add-apt-repository 'deb http://mirrors.hustunique.com/mariadb/repo/10.0/ubuntu precise main'
Once the key is imported and the repository added you can install MariaDB with:
sudo apt-get update sudo apt-get install mariadb-server
参考地址;https://downloads.mariadb.org/mariadb/repositories/#mirror=qiming&distro=Ubuntu&distro_release=precise&version=10.0