centos7安装mariadb(mysql)
centos7 默认可以
yum -y install mariadb-server mariadb mariadb-client mariadb-devel
如果出现错误
GPG key retrieval failed: [Errno 14] curl#37 - "Couldn't open file /etc/pki/rpm-gpg/RPM-GPG-KEY-mysql"
编辑文件/etc/yum.repos.d/mysql-community.repo
vi /etc/yum.repos.d/mysql-community.repo
找到你要安装的版本,比如5.6
修改gpgcheck=0即可