1. 在/etc/yum.repos.d/下建立MariaDB.repo
MariaDB.repo:
[mariadb] name = MariaDB baseurl = http://yum.mariadb.org/5.5.28a/fedora17-amd64/ gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
2.Installing MariaDB with YUM
yum install MariaDB-server MariaDB-client
3.Installing MariaDB Galera Cluster with YUM
yum install MariaDB-Galera-server MariaDB-client galera
4. After Installation
/etc/init.d/mysql start
chkconfig --level 235 mysql on
service mysql start
5. Manually Importing the MariaDB Signing Key
rpm --import https://yum.mariadb.org/RPM-GPG-KEY-MariaDB6. mysql-libs 冲突,卸载它,安装php-mysqlnd.x86_64