Linux upgrade MySQL to MySQL latest version of the method

Source: Internet
Author: User
Tags mysql latest version


Because a lot of the time when the installation of the program mysql5.0 completely not to force, so we want to upgrade MySQL to 5.5, after all, since the 5.0 version!
1. Update Yum Source

The code is as follows Copy Code
RPM-UVH http://repo.webtatic.com/yum/centos/5/latest.rpm

2. Install Yum support

The code is as follows Copy Code
Yum Install libmysqlclient15--enablerepo=webtatic

3. Stop MySQL Service

The code is as follows Copy Code

Service Mysqld Stop

4. Uninstall the old version of MySQL

The code is as follows Copy Code
Yum Remove MySQL mysql-*

5. Install a new version of MySQL

The code is as follows Copy Code
Yum Install mysql55 mysql55-server--enablerepo=webtatic

Single mode to start MySQL (this step, optional!) )

The code is as follows Copy Code
Mysqld_safe--skip_grant_tables

6. Upgrade MySQL

The code is as follows Copy Code
Mysql_upgrade

7. Restart MySQL Database

The code is as follows Copy Code
Service mysqld Restart



You can then complete the upgrade operation

Related Article

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.