1,第一步
[xxxxxx]$ cd /etc/yum.repos.d
[xxxxxx]$ vi MariaDB.repo
# MariaDB 10.0 CentOS repository list - created 2013-08-23 13:08 UTC
[mariadb]
name = MariaDB
baseurl = http://yum.mariadb.org/10.0/centos6-amd64
gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB
gpgcheck=1
2,第二步
yum -y install MariaDB-client MariaDB-server MariaDB-devel
service mysql start
mysqladmin -u root password ‘passwd’
mysql -u root -p
文章来自玖乐网络(96net.com.cn)