系统版本:Linux localhost.localdomain 2.6.32-431.el6.x86_64 #1 SMP Fri Nov 22 03:15:09 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux
添加MariaDB下载源
vi /etc/yum.repos.d/MariaDB.repo 添加内容 # MariaDB 10.1 CentOS repository list - created 2015-12-20 12:55 UTC # http://mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = http://yum.mariadb.org/10.1/centos6-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=1
生成缓存yum makecache
安装MariaDB
yum install MariaDB-server MariaDB-client -y
安装好后开启服务
service mysql start
然后登陆
mysql -uroot