centos mysql upgrade_Upgrade Centos Mysql 5.0 to 5.5

How to Upgrade MySQL 5.0 to 5.5 in CentOS

**** UPDATE *****

The following steps require the EPEL (Extra Packages for Enterprise Linux) so you’ll have to install epel first before proceeding. Here’s the command:

rpm -Uvh http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm

Step 1 login as root to your vps

Step 2 Install Remi repository

rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

The result will something like..

Retrieving http://rpms.famillecollet.com/enterprise/remi-release-5.rpm

warning: /var/tmp/rpm-xfer.cVJJxn: Header V3 DSA signature: NOKEY, key ID 00f97f56

Preparing... ########################################### [100%]

1:remi-release ########################################### [100%]

Step 3 Check availability of MySQL versions

yum --enablerepo=remi,remi-test list mysql mysql-server

the last lines of the output should be something like this.

Available Packages

mysql.i386 5.5.14-1.el5.remi remi

mysql-server.i386 5.5.14-1.el5.remi remi

[root@one ~]#

Step 4 Update or Install MySQL

yum --enablerepo=remi,remi-test install mysql mysql-server

Step 5 Restart MySQL

service mysqld start

Step 6 Upgrade MySQL Databases

mysql_upgrade -u root -p

***** NOTE : THE LAST STEP IS VERY IMPORTANT BECAUSE IT WILL CREATE PRIVILEGE TABLES ******

Source :

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

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值