Tìm kiếm với Google


Thursday, February 28, 2008

Install Upgrade MySQL 5 on Redhat Enterprise version 4 (RHEL4)



Upgrade MySQL 4.1 to 5.0 on RHEL4:
With Debian(Ubuntu) install and upgrade are very easy but on Fedora or Redhat it very difficult.
On Redhat Enterprise 4.0 before upgrade MySQl 4.1 to MySQL 5.0 you must uninstall MySql 4.1 first.
You can follow these command :

#rpm -e mysql-devel-4.1.7-4.RHEL4.1.i386
#rpm -e mysql-server-4.1.7-4.RHEL4.1.i386
#rpm -e mysql-4.1.7-4.RHEL4.1

After you removed old MySQL 4.1 you need download these packages:
MySQL-shared-compat-5.0.51a-0.rhel4.i386.rpm,MySQL-devel-community-5.0.51a-0.rhel4.i386.rpm,MySQL-server-community-5.0.51a-0.rhel4.i386.rpm ,MySQL-client-community-5.0.51a-0.rhel4.i386.rpm
It can be download on website mysql:
http://dev.mysql.com/downloads/mysql/5.0.html#
when downloaded you enter these command:

#rpm -ivh MySQL-shared-compat-5.0.51a-0.rhel4.i386.rpm
#rpm -ivh MySQL-devel-community-5.0.51a-0.rhel4.i386.rpm
#rpm -ivh MySQL-server-community-5.0.51a-0.rhel4.i386.rpm
#rpm -ivh MySQL-client-community-5.0.51a-0.rhel4.i386.rpm

At the Terminal :when you entered command mysql
it can be show this:


Your MySQL connection id is 13
Server version: 5.0.51a-community MySQL Community Edition (GPL)

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

Congratulations,You have Mysql 5.0 Installed
(I'm so sorry if I make mistake in English Grammar)

No comments: