altis 2014-6-26 11:33
在 CentOS 6.5 64Bit 上透過 yum 安裝 MariaDB 10
MariaDB是一個非常優質、自由的免費資料庫,Google也在不久前才將數千台的MySQL資料庫伺服器更改為MariaDB,MariaDB取代MySQL非常簡單,只需要備份之前的資料庫,安裝MariaDB後恢復備份即可,就算您只有一台伺服器在做更換,也能掌握好停機時間,不會停機太久,且MariaDB經過測試證實,在大量查詢下,效能是比MySQL好的許多,如果您對MariaDB有信心的話,趕快將MySQL更換成MariaDB,一起支持MariaDB吧!<div><br></div><div>Here is your custom MariaDB YUM repository entry for CentOS. Copy and
paste it into a file under /etc/yum.repos.d/ <br>we suggest naming the file
<font color="Red">MariaDB.repo</font><br>[quote]<br># MariaDB 10.0 CentOS repository list - created 2014-06-26 02:59 UTC<br># http://mariadb.org/mariadb/repositories/<br>[mariadb]<br>name = MariaDB<br>baseurl = http://yum.mariadb.org/10.0/centos6-amd64<br>gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB<br>gpgcheck=1<br>[/quote]<br><br>然後開始安裝:<br># <font color="Blue">yum install MariaDB-server MariaDB-client</font><br><br>裝好之後啟用方法跟 mysql 語法一樣<br># service mysql start<br><br>一樣可以執行安全性設定<br># mysql_secure_installation<br><br>觀看 MariaDB 的版本<br># rpm -qi MariaDB-server<br>[quote]<br><br>[root@MariaDB mysql]# rpm -qi MariaDB-server<br>Name : MariaDB-server Relocations: /usr<br>Version : 10.0.12 Vendor: Monty Program AB<br>Release : 1.el6 Build Date: Fri 13 Jun 2014 01:07:06 AM CST<br>Install Date: Thu 26 Jun 2014 11:28:02 AM CST Build Host: centos6-amd64<br>Group : Applications/Databases Source RPM: MariaDB-server-10.0.12-1.el6.src.rpm<br>Size : 225740290 License: GPL<br>Signature : DSA/SHA1, Fri 13 Jun 2014 11:23:46 PM CST, Key ID cbcb082a1bb943db<br>URL : http://mariadb.org<br>Summary : MariaDB: a very fast and robust SQL database server<br>Description :<br>MariaDB: a very fast and robust SQL database server<br><br>It is GPL v2 licensed, which means you can use the it free of charge under the<br>conditions of the GNU General Public License Version 2 (http://www.gnu.org/licenses/).<br><br>MariaDB documentation can be found at http://kb.askmonty.org/<br>MariaDB bug reports should be submitted through https://mariadb.atlassian.net/<br><br>[/quote]<br><br>到這邊就裝好囉~~<br></div>