MySQL Upgrade 5.1 to 5.6

Source: Internet
Author: User

Because the latest version of MySQL in the APT Library of Ubuntu is still 5.1, the upgrade MySQL5.5 is only downloaded by itself, and because of the large changes between the two versions, it is important to read the official website's upgrade upgrading from the MySQL 5.1 to 5.5 , make sure your database and configuration apply to the new version.

This article refers to an English-language guideline a step by step guides to upgrading to MySQL 5.5 but has made some adjustments in order and content, especially the official website and this English guide is mysqldump to back up the files before upgrading, and then the way SQL is imported , but this process can be very time-consuming (the database may take more than 10 hours to complete the re-import), I directly in the original database file directory upgrade, the basic is the blink of an eye, of course, I would like to emphasize again, this may not apply to everyone.

The steps are as follows:

The steps are as follows:

1. Stop the current version of MySQL and back up

mkdir Mysql_5.1_backup

CD Mysql_5.1_backup

All subsequent backup operations are performed at Mysql_5.1_backup

1.1 Backup Database with mysqldump, MySQL built-in database and product database can be backed up separately

Mysqldump-u user_name-p–databases mysql > Mysql_db.sql
mysqldump-u user_name-p–databases db_n Ame > Db_name.sql

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.