mysql5.1.33 to mysql5.5.33 in the process of data migration

Source: Internet
Author: User

Background: The company to the Test library mysql5.1.33 above the data migrated to mysql5.5.33 above, 5.1 above the table is mostly MyISAM table, in order to make the data consistent, with the--lock-all-table option

Precautions:

1, you can pilot the permission table, so that you can move the business to the successful part of the library above

2, the guide before the Binlog to be banned, so that the speed of the import will be faster,set global Sql_log_bin=off, there is no binlog to disable the case of about 1G per hour can only lead to more than the data. Approximately 20G of data can be imported per hour after disabling Binlog

3, select Innobackupex Backup will be faster.

4, import and export to record the log, record the time of import and export, so in case of error, you can immediately locate the error
5, pay attention to import and export parameters, use--skip-opt carefully, will change the properties of the table

6. Main import and Export parameters:--default-character-set=utf8--opt--extended-insert=false--triggers-r--hex-blob

(-x,--lock-all-tables, do not add-X if strict consistency is not required, because it locks the entire library)


P.S:

Cannot set such a global variable in version 5.6, will error

Set global Sql_log_bin=off;

ERROR 1231 (42000): Variable ' sql_log_bin ' can ' t is set to the value of ' off '


This article is from the "Always on the Road" blog, please be sure to keep this source http://chenql.blog.51cto.com/8732050/1682008

mysql5.1.33 to mysql5.5.33 in the process of data migration

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.