Install mysql5.1 on centos5.5 using yum

Source: Internet
Author: User
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

 

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.