Here is your custom MariaDB YUM repository entry for CentOS. Copy and
paste it into a file under /etc/yum.repos.d/
we suggest naming the file
MariaDB.repo引用:
# MariaDB 10.0 CentOS repository list - created 2014-06-26 02:59 UTC
# http://mariadb.org/mariadb/repositories/
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
然後開始安裝:
#
yum install MariaDB-server MariaDB-client裝好之後啟用方法跟 mysql 語法一樣
# service mysql start
一樣可以執行安全性設定
# mysql_secure_installation
觀看 MariaDB 的版本
# rpm -qi MariaDB-server
引用:
[root@MariaDB mysql]# rpm -qi MariaDB-server
Name : MariaDB-server Relocations: /usr
Version : 10.0.12 Vendor: Monty Program AB
Release : 1.el6 Build Date: Fri 13 Jun 2014 01:07:06 AM CST
Install Date: Thu 26 Jun 2014 11:28:02 AM CST Build Host: centos6-amd64
Group : Applications/Databases Source RPM: MariaDB-server-10.0.12-1.el6.src.rpm
Size : 225740290 License: GPL
Signature : DSA/SHA1, Fri 13 Jun 2014 11:23:46 PM CST, Key ID cbcb082a1bb943db
URL : http://mariadb.org
Summary : MariaDB: a very fast and robust SQL database server
Description :
MariaDB: a very fast and robust SQL database server
It is GPL v2 licensed, which means you can use the it free of charge under the
conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/).
MariaDB documentation can be found at http://kb.askmonty.org/
MariaDB bug reports should be submitted through https://mariadb.atlassian.net/
到這邊就裝好囉~~