IndianWebPortal.com

Something Different In Linux

Home » How to » upgrade mysql version on linux server

upgrade mysql version on linux server

Posted by Rishikesh Vispute Categories: How to, mysql

You can upgrade your mysql version from 5.0 to 5.5 by using following steps

1. Enable remi repository for yum

wget http://dl.fedoraproject.org/pub/epel/5/i386/epel-release-5-4.noarch.rpm
wget http://rpms.famillecollet.com/enterprise/remi-release-5.rpm
sudo rpm -Uvh remi-release-5*.rpm epel-release-5*.rpm

2. Run mysqldump to export data out from MySQL 5.0

mysqldump -uroot -p –all-databases > mysqlbackup.sql

3. Run ‘yum –enablerepo=remi install mysql mysql-server mysqlclient’

4. Run mysql_upgrade (part of mysql-server.rpm) to clean up the upgraded package

mysql_upgrade -u root -p

5. Adjust my.cnf (version 5.0) for version 5.5

6. Restart MySQL if needed


Popular Posts

remove index.php fro

How to remove index.php from url in magento Ans : If you ...

PHP-Java bridge on p

  What is php-java bridge? The php-java bridge is the php ...

Set expiration for y

If you want to set the expiration to your site ...

Warning: Parameter 1

Error: Warning: Parameter 1 to modMainMenuHelper::buildXML() expected to be a ...

domain pointing to e

If you domain uses external MX record and it is ...