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

在CentOS 6.2中将MySQL版本从5.1更新到5.5,第1张

在CentOS 6.2中将MySQL版本从5.1更新到5.5 列出旧的MySql
yum list installed | grep -i mysql
删除旧的MySql
yum remove mysql mysql-*
Remi对CentOS 6和Red Hat(RHEL)6的依赖性
rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpmrpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
安装MySQL服务器
yum --enablerepo=remi,remi-test install mysql mysql-server
列出新的MySql
yum list installed | grep -i mysql
启动MySql服务器

/etc/init.d/mysqld start
##更新后使用重新启动

要么

service mysqld start
##更新后使用重新启动

chkconfig --levels 235 mysqld on
持续
mysql_upgrade -u root -p

现在我的MySql版本是5.5.32

参考:

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

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

希望对你有所帮助

注意: 从@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)


欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/zaji/5044228.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-15
下一篇 2022-11-15

发表评论

登录后才能评论

评论列表(0条)

保存