centos7默认自带的是mariadb5.5,mariadb 最新版有一个比较重要的功能 select partition
,所以必须升级。
https://www.vultr.com/docs/how-to-install-mariadb-10-1-on-centos-7
1 2 3 4 5 6 7 8 9 |
cat <<EOF | sudo tee -a /etc/yum.repos.d/MariaDB.repo # MariaDB 10.1 CentOS repository list # http://downloads.mariadb.org/mariadb/repositories/ [mariadb] name = MariaDB baseurl = https://mirrors.tuna.tsinghua.edu.cn/mariadb/mariadb-10.1.25/yum/rhel7-amd64 gpgkey=https://yum.mariadb.org/RPM-GPG-KEY-MariaDB gpgcheck=0 EOF |
(那个验证的被墙了。如果服务器是国外的不需要修改,直接用第一个连接上的)
https://mariadb.com/kb/en/mariadb/upgrading-from-mariadb-55-to-mariadb-100/
话说升级不是很人性化,必须卸载重新安装。(by coconets@163.com )