參考網址:https://downloads.mariadb.org/mariadb/repositories/python
以ubuntu12.04安裝mariadb10爲例。具體其餘的能夠參考給出的參考網址
Here are the commands to run to add MariaDB to your system:ubuntu
sudo apt-get install python-software-properties sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main'
sudo apt-get install python-software-properties sudo apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db sudo add-apt-repository 'deb http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main'3d
Once the key is imported and the repository added you can install MariaDB with:code
sudo apt-get update sudo apt-get install mariadb-server
sudo apt-get update sudo apt-get install mariadb-serverorm
See Installing MariaDB .deb Files for more information.server
You can also create a custom MariaDB sources.list file. To do so, copy and paste the following into a file under /etc/apt/sources.list.d/(we suggest naming the file MariaDB.list or something similar), or add it to the bottom of your /etc/apt/sources.list file.ci
MariaDB 10.0 repository list - created 2013-06-28 04:25 UTC http://mariadb.org/mariadb/repositories/ deb http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main deb-src http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main ##
#
MariaDB 10.0 repository list - created 2013-06-28 04:25 UTC #
http://mariadb.org/mariadb/repositories/ deb http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise main deb-src http://mirrors.scie.in/mariadb/repo/10.0/ubuntu precise mainget