ADJ網路實驗室
打印

[介紹] 在 CentOS 6.5 64Bit 上透過 yum 安裝 MariaDB 10

在 CentOS 6.5 64Bit 上透過 yum 安裝 MariaDB 10

MariaDB是一個非常優質、自由的免費資料庫,Google也在不久前才將數千台的MySQL資料庫伺服器更改為MariaDB,MariaDB取代MySQL非常簡單,只需要備份之前的資料庫,安裝MariaDB後恢復備份即可,就算您只有一台伺服器在做更換,也能掌握好停機時間,不會停機太久,且MariaDB經過測試證實,在大量查詢下,效能是比MySQL好的許多,如果您對MariaDB有信心的話,趕快將MySQL更換成MariaDB,一起支持MariaDB吧!

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/



到這邊就裝好囉~~





TOP

ARTERY.cn