Install mysql5.1 on centos5.5 using yum
@ For ever 2011-1-12
The command is as follows:
1. First view the system
# Uname-
Linux Google 2.6.18-194. EL5 #1 SMP Fri APR 2 14:58:14 EDT 2010 x86_64 x86_64 x86_64 GNU/Linux
My system is 64-bit. Therefore, perform the following 64-bit operations.
2. Download Required Software
If the system is 32-bit, run the following command to download and install the software:
# WgetHttp://download.fedora.redhat.com/pub/epel/5/i386/epel-release-5-4.noarch.rpm
# WgetHttp://rpms.famillecollet.com/el5.i386/remi-release-5-8.el5.remi.noarch.rpm
# Rpm-uvh epel-release-5-4.noarch.rpm
# Rpm-uvh remi-release-5-8.el5.remi.noarch.rpm
If the system is 64-bit, run the following command to download and install the software:
# WgetHttp://download.fedora.redhat.com/pub/epel/5/x86_64/epel-release-5-4.noarch.rpm
# WgetHttp://rpms.famillecollet.com/el5.x86_64/remi-release-5-8.el5.remi.noarch.rpm
# Rpm-uvh epel-release-5-4.noarch.rpm
# Rpm-uvh remi-release-5-8.el5.remi.noarch.rpm
3. modify the configuration file
# Vi/etc/yum. Repos. d/Remi. Repo
Modify the enabled under [Remi] in the file to 1.
Enabled = 1
4. Install
# Yum install mysql-Server
# Yum install mysql-plugin
If a version conflict is reported during installation, it may be because MySQL has been installed through yum. just delete the original MySQL.
The command is as follows:
# Yum remove MySQL
5. Start and Stop
#/Etc/init. d/mysqld START | stop
@ Forandever 2011-1-12