Centos7:mariadb替换mysql
想用mysql怎么办?
UPDATE: 其实yum -y install mariadb-devel就可以完全搞定,真的是完全兼容
缘由
在一台centos7机器上跑了yum –y install mysql-client;跑完了,没问题,但是莫名其妙安装上了mariadb。。。干
只想用mysql-client,不跑server,不给源就自己下
地址:
http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-client-5.7.10-1.el7.x86_64.rpm
http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-libs-5.7.10-1.el7.x86_64.rpm
http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-common-5.7.10-1.el7.x86_64.rpm
http://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-community-devel-5.7.10-1.el7.x86_64.rpm
然后就直接rpm –ivm *.rpm啦
插曲
安装mysql-community-libs-5.7.10-1.el7.x86_64.rpm出错了,又是mariadb,直接干掉
yum remove mariadb-libs-5.5.44-2.el7.centos.x86_64
再依次安装 common/lib/client 搞定
想装server的还是试试mariadb吧