CentOS6.5卸载默认安装的mysql5.1,并安装mysql5.5(亲测有效)
感谢链接:https://jingyan.baidu.com/article/922554465e471a851648f4ed.html 指导。
1、安装前:CentOS6.5 yum 安装MySQL是5.1版本。老板觉得低了,好=》卸载,装上5.5的。
2、最终效果图:命令 select version();
3、不废话,上代码和步骤:
第一步就是看linu是否安装了mysql,经过rpm -qa|grep mysql查看到centos下安装了mysql5.1,那就开始卸载咯
![centos6.5下yum安装mysql5.5](https://imgsa.baidu.com/exp/w=500/sign=bfdcb181fb039245a1b5e10fb794a4a8/4afbfbedab64034f04e2854aa8c379310a551d4a.jpg)
接下来就是卸载mysql5.1了,命令:rpm -e mysql-libs --nodeps
![centos6.5下yum安装mysql5.5](https://imgsa.baidu.com/exp/w=500/sign=8bffc102cd8065387beaa413a7dca115/cf1b9d16fdfaaf51eb32c5f38b5494eef11f7aac.jpg)
yum中之后mysql5.1,安装还是5.1,现在就要去增加一个新的repo
rpm -Uvh http://mirror.steadfast.net/epel/6/i386/epel-release-6-8.noarch.rpm
![centos6.5下yum安装mysql5.5](https://imgsa.baidu.com/exp/w=500/sign=f34e7d8836adcbef01347e069cae2e0e/e1fe9925bc315c6017442fa38ab1cb13485477ac.jpg)
一共需要增加两个repo,现在增加另一个
rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm