centos6.6 升级mysql到5.5 ,因为默认是5.1
2016-10-24 13:43
393 查看
原文 :http://www.2cto.com/database/201305/215930.html 版权声明:本文为博主原创文章,未经博主允许不得转载。参考文档:http://www.jjhr.net/2015/01/install-rhel-epel-repo-on-centos-5-x-or-6-x/原由:使用yum安装完成MySQL、PHP后,mysql的版本是5.1,最新版本的PhpMyAdmin4.5不支持,需要升级mysql到5.5.环境:CentOS 6.7 ,Mysql 5.1,PHP5.3.,Apache 2.2.15 全部采用Yum安装。其中PHP使用yum升级到了5.5.16.1.配置新的yum源。[root@centosphpyum ~]# rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm报错:Retrieving http://rpms.famillecollet.com/enterprise/remi-release-6.rpmwarning: /var/tmp/rpm-tmp.AmzSjH: Header V3 DSA/SHA1 Signature, key ID 00f97f56: NOKEYerror: Failed dependencies: epel-release >= 6 is needed by remi-release-6.6-2.el6.remi.noarch2.解决错误:wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpmwget http://rpms.famillecollet.com/enterprise/remi-release-6.rpmrpm -ivh epel-release-6-8.noarch.rpmrpm -ivh remi-release-6.rpm配置源配置文件:ls -1 /etc/yum.repos.d/epel* /etc/yum.repos.d/remi.repo编辑[remi]下的enabled选项从0设为1[remi]name=Les RPM de remi pour Enterprise Linux 6 - $basearch#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirrorenabled=1gpgcheck=1gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi3.更新库更新完成后,开始升级mysql。rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm4.查看更新库中可用的版本:
yum --enablerepo=remi,remi-test list mysql mysql-server
5.升级mysql。
yum --enablerepo=remi install mysql mysql-server
6.测试升级成功。
最后发现在有些存储过程有问题
解决办法:
http://www.2cto.com/database/201305/215930.html
相关文章推荐
- centos6.5升级默认的Mysql到5.5方法
- CentOS下将MySQL 5.1升级到MySQL 5.5的步骤
- CentOS 6 升级MySql (5.1.x 到 5.5, 再到5.6)
- CentOS下将MySQL 5.1升级到MySQL 5.5
- CentOS 5.5 升级php到5.2,mysql到5.1 (yum安装之后的为5.1.6版本过低而升级)
- CentOS下将MySQL 5.1升级到MySQL 5.5的步骤
- MySQL 5.1升级到MySQL 5.5的步骤
- 在CentOS上把MySQL从5.5升级到5.6(转)
- CentOS 5.5 安装 mysql5.1
- CentOS 下安装MySQL 默认源为5.1版本
- CentOS-5 yum安装mysql-5.5/5.1
- CentOS 6 下升级安装Mysql 5.5 完整步骤
- 修复mysql 5.1升级至5.5出现的BUG: Cannot load from mysql.proc. The table is probably corrupted
- Redhat 6.6 mysql 5.1升级到5.6步骤
- centos 6.6升级自带mysql版本文档
- CentOS 6.2 下升级安装为MySQL 5.5的方法
- CentOS 6 下升级安装Mysql 5.5 完整步骤
- 升级 mysql5.1 -> 5.5
- CentOS 6 下升级安装Mysql 5.5 完整步骤
- MySQL 5.1升级到MySQL 5.5的步骤