centos6.6 升级mysql到5.5 ,因为默认是5.1

原文 :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安装完成MySQLPHP后,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 -Uvhhttp://rpms.famillecollet.com/enterprise/remi-release-6.rpm

报错:

Retrievinghttp://rpms.famillecollet.com/enterprise/remi-release-6.rpm
warning: /var/tmp/rpm-tmp.AmzSjH: Header V3 DSA/SHA1 Signature,key ID 00f97f56: NOKEY
error: Failed dependencies:
epel-release >= 6 is needed by remi-release-6.6-2.el6.remi.noarch

2.解决错误:

wgethttp://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
wgethttp://rpms.famillecollet.com/enterprise/remi-release-6.rpm
rpm -ivh epel-release-6-8.noarch.rpm
rpm -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 EnterpriseLinux6 - $basearch
#baseurl=http://rpms.famillecollet.com/enterprise/6/remi/$basearch/
mirrorlist=http://rpms.famillecollet.com/enterprise/6/remi/mirror
enabled=1
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-remi


3.更新库更新完成后,开始升级mysql。

rpm -Uvhhttp://rpms.famillecollet.com/enterprise/remi-release-6.rpm

4.查看更新库中可用的版本:

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

相关文章

linux下开机自启: 在/etc/init.d目录下新建文件elasticsear...
1、因为在centos7中/etc/rc.d/rc.local的权限被降低了,所以...
最简单的查看方法可以使用ls -ll、ls-lh命令进行查看,当使用...
ASP.NET Core应用程序发布linux在shell中运行是正常的。可一...
设置时区(CentOS 7) 先执行命令timedatectl status|grep &...
vim /etc/sysconfig/network-scripts/ifcfg-eth0 B...