Linux/centos mysql5.1 Upgrade to 5.6 (RPM-Installed MySQL upgrade)

Source: Internet
Author: User
Tags mysql version
Before upgrading, first backup the entire database, prepared

Backing up the database, upgrading MySQL usually does not lose data, but for the sake of insurance, we need to do this step. Enter the command:

Mkdir/software Create a folder to store backup files

Mysqldump-u root-p--all-databases--default-character-set=utf8 >/software/databases.sql

To stop the MySQL service, enter the command:

Service Mysqld Stop

Download and install the latest RPM file

RPM-UVH http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm

To install MySQL, enter the command:

Yum Install Mysql-community-server

To start MySQL, enter the command:

Service mysqld Start

When the boot is complete, enter the command to view the MySQL version number:

Mysql-v

Upgrade successful

If you are interested in this, please scan the QR code below for free for more details

Linux/centos mysql5.1 Upgrade to 5.6 (RPM-Installed MySQL upgrade)

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.