在CentOS 6.2中将MySQL版本从5.1更新为5.5

前端之家收集整理的这篇文章主要介绍了在CentOS 6.2中将MySQL版本从5.1更新为5.5前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我试图在CentOS 6.2中将MysqL从5.1更新到5.5。以下是我所做的过程:
1. rpm -Uvh http://repo.webtatic.com/yum/centos/5/latest.rpm
2. yum install libMysqLclient15 --enablerepo=webtatic
3. yum remove MysqL MysqL-*
4. yum install MysqL55 MysqL55-server --enablerepo=webtatic
@H_404_3@当我尝试第四步,我得到以下输出

[root@d2005 /]# yum install MysqL55 MysqL55-server --enablerepo=webtatic
Failed to set locale,defaulting to C
Loaded plugins: fastestmirror,presto
Loading mirror speeds from cached hostfile
 * base: yum.singlehop.com
 * extras: centos.mirrors.tds.net
 * updates: pubmirrors.reflected.net
Setting up Install Process
Resolving Dependencies
--> Running transaction check
---> Package MysqL55.x86_64 0:5.5.10-1.w5 will be installed
--> Processing Dependency: MysqL55-libs = 5.5.10-1.w5 for package: MysqL55-5.5.10-1.w5.x86_64
---> Package MysqL55-server.x86_64 0:5.5.10-1.w5 will be installed
--> Processing Dependency: perl-DBD-MysqL for package: MysqL55-server-5.5.10-1.w5.x86_64
--> Running transaction check
---> Package MysqL55-libs.x86_64 0:5.5.10-1.w5 will be installed
---> Package perl-DBD-MysqL.x86_64 0:4.013-3.el6 will be installed
--> Processing Dependency: libMysqLclient.so.16(libMysqLclient_16)(64bit) for package: perl-DBD-MysqL-4.013-3.el6.x86_64
--> Processing Dependency: libMysqLclient.so.16()(64bit) for package: perl-DBD-MysqL-4.013-3.el6.x86_64
--> Running transaction check
---> Package MysqL-libs.x86_64 0:5.1.61-1.el6_2.1 will be installed
--> Processing Conflict: MysqL55-libs-5.5.10-1.w5.x86_64 conflicts MysqL-libs < 5.5.10
--> Finished Dependency Resolution
Error: MysqL55-libs conflicts with MysqL-libs
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest
@H_404_3@如何解决

列出Old MysqL
yum list installed | grep -i MysqL
@H_404_3@删除MysqL

yum remove MysqL MysqL-*
@H_404_3@Remi依赖于CentOS 6和Red Hat(RHEL)6

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
@H_404_3@安装MysqL服务器

yum --enablerepo=remi,remi-test install MysqL MysqL-server
@H_404_3@列出新的MysqL

yum list installed | grep -i MysqL
@H_404_3@启动MysqL服务器

@H_404_3@/etc/init.d/MysqLd start ##更新后使用restart

@H_404_3@要么

@H_404_3@service MysqLd start ##更新后使用restart

chkconfig --levels 235 MysqLd on
@H_404_3@持续

MysqL_upgrade -u root -p
@H_404_3@现在我的MysqL版本是5.5.32

@H_404_3@参考:

@H_404_3@http://www.webtatic.com/packages/mysql55/

@H_404_3@http://www.if-not-true-then-false.com/2010/install-mysql-on-fedora-centos-red-hat-rhel/

@H_404_3@希望它帮助一些

@H_404_3@注意:
从@pim添加评论(在评论中)

Just wanted to add that after the upgrade,my crontab was removed as well. Had to reinstall with "yum install vixie-cron" (CentOS 6)
原文链接:https://www.f2er.com/centos/375827.html

猜你在找的CentOS相关文章