MySQL Version upgrade

Source: Internet
Author: User

Version Upgrade :
MySQL version a lot, there are 5.5,5.6,5.7 are possible, sometimes our goal is to upgrade the database version. Use the mysqldump way to operate, because the export is the SQL statement, so directly into the new library is the upgrade. And in the Xtrabackup way or directly update the program directory, you need to have the following operations to upgrade, or do not do any operation.

Also for the same version of the recovery, there will be no problem, but not allow the high version of the recovery of the lower version, even if you use a variety of problems. For the lower version of the recovery to a higher version can be, but to do a more upgrade operation, or it will be error and some inexplicable things.

#要确认mysql在启动状态, the shutdown status does not/etc/init.d/mysql status# perform the upgrade command Mysql_upgrade--defaults-file=/usr/local/mysql/my.cnf-uroot    -p123-h127.0.0.1.    Ok.    Ok. Okupgrade process completed successfully. Checking if update is needed.

The operation is very fast, does not take a lot of time, and then your database can really be used normally, that is, the upgrade is complete.


MySQL Branch upgrade issues

The additional explanation is that MySQL has a lot of branches, there are MySQL official, there are percona, there are mariadb, there are new alsql. In theory, it is universal, but inevitably there are some differences, so this cross-branch upgrade, personal advice is to use mysqldump such tools more practical. In particular, the new version of the MARIADB and MySQL official versions, the difference is almost impossible to repair, if hard to use it well.



MySQL Version upgrade

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.