How to install MySQL in Linux

Source: Internet
Author: User
Because a lower version of mysqlserver has been installed on the Linux server in use, when the rpm package is used for installation, a version conflict is prompted and the installation cannot continue. Because

An earlier version of mysql server has been installed on the Linux server in use. When the rpm package is used for installation, a version conflict is prompted and the installation cannot proceed. Because

An earlier version of mysql server has been installed on the Linux server in use. When the rpm package is used for installation, a version conflict is prompted and the installation cannot proceed.

The solution is as follows:

1. First, find all the mysql instances installed in the system.
# Rpm-qa | grap-I after mysql runs this command, all lists are displayed.
Mysql-4.1.20-1.RHEL4.1
Mysqlclient10-3.23.58-4.RHEL4.1

2. Force Delete the list one by one:
# Rpm-ev -- nodeps mysql-4.1.20-1.RHEL4.1.
# Rpm-ev -- nodeps mysqlclient10-3.23.58-4.RHEL4.1.

Manually delete the files of earlier versions:
# Rpm-f/etc/my. cnf
# Rpm-rf/usr/var/lib/mysql
Now you can perform a new installation of mysql, the required software package:


3. software to be installed
MySQL-client-5.0.22-0.i386.rpm MySQL client software
MySQL-server-5.0.22-0.i386.rpm MySQL Server Software
Rpm-ivh MySQL-client-5.0.22-0.i386.rpm
Rpm-ivh MySQL-server-5.0.22-0.i386.rpm

4
Okay!

Upload the downloaded software package to the Linux server and start installation (note the installation sequence)

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.