Friday, 29 November 2013

upgrade myql version 5.1.69 to version 5.1.70 (Centos 6.2)

1. Download version 5.1.70

wget http://downloads.mysql.com/archives/mysql-5.1/MySQL-server-5.1.70-2.glibc23.x86_64.rpm

wget http://downloads.mysql.com/archives/mysql-5.1/MySQL-client-5.1.70-2.glibc23.x86_64.rpm

wget http://downloads.mysql.com/archives/mysql-5.1/MySQL-devel-5.1.70-2.glibc23.x86_64.rpm



2. Stop service mysql
#service mysql stop



3. move irectory database mysql old and file my.cnf
#mv /var/lib/mysql/ /var/lib/mysql5.1.69
#mv /etc/my.cnf /etc/my.cnf5.1.69



4. remove package mysql
#yum remove mysql-server-5.1.69 mysql-5.1.69 mysql-shared-5.1.69 mysql-libs-5.1.69


5. Install package Mysql 5.1.70
#rpm -ivh MySQL-client-5.1.70-2.glibc23.x86_64.rpm
#rpm -ivh MySQL-server-5.1.70-2.glibc23.x86_64.rpm

#rpm -ivh MySQL-devel-5.1.70-2.glibc23.x86_64.rpm



6. Start Mysql
#service mysql start


7. Cek verion Mysql
#mysqladmin -u root -p version

Server version          5.1.70




success




0 comments:

Post a Comment