Linux Install MariaDB 最新 10.1 10.2
Here are the commands to run to add MariaDB to your system:
- sudo apt-get install software-properties-common
- sudo apt-key adv –recv-keys –keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db
- sudo add-apt-repository ‘deb [arch=amd64,i386,ppc64el] http://mirrors.accretive-networks.net/mariadb/repo/10.1/debian jessie 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
See Installing MariaDB .deb Files for more information.
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.
- # MariaDB 10.1 repository list – created 2017-02-15 01:19 UTC
- # http://downloads.mariadb.org/mariadb/repositories/
- deb [arch=amd64,i386] http://mirrors.accretive-networks.net/mariadb/repo/10.1/debian jessie main
- deb-src http://mirrors.accretive-networks.net/mariadb/repo/10.1/debian jessie main
原文 https://downloads.mariadb.org/mariadb/repositories/#mirror=babylon-ca&distro=Debian&distro_release=jessie–jessie&version=10.1
————————————————————————————————————————————————————————————————————————————————————————————————————————————
Here are the commands to run to install MariaDB on your Ubuntu system:
- sudo apt-get install software-properties-common
- sudo apt-key adv –recv-keys –keyserver hkp://keyserver.ubuntu.com:80 0xF1656F24C74CD1D8
- sudo add-apt-repository ‘deb [arch=amd64,i386,ppc64el] http://mirrors.neusoft.edu.cn/mariadb/repo/10.2/ubuntu xenial main’
Once the key is imported and the repository added you can install MariaDB with:
- sudo apt update
- sudo apt install mariadb-server
See Installing MariaDB .deb Files for more information and for instructions on installing MariaDB Galera Cluster.
You can also create a custom MariaDB sources.list file. To do so, after importing the signing key as outlined above, 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.
- # MariaDB 10.2 repository list – created 2017-06-19 09:38 UTC
- # http://downloads.mariadb.org/mariadb/repositories/
- deb [arch=amd64,i386] http://mirrors.neusoft.edu.cn/mariadb/repo/10.2/ubuntu xenial main
- deb-src http://mirrors.neusoft.edu.cn/mariadb/repo/10.2/ubuntu xenial main
原文 : https://downloads.mariadb.org/mariadb/repositories/#mirror=neusoft&distro=Ubuntu&distro_release=xenial–ubuntu_xenial&version=10.2