Upgrade from MySQL 5.1 to MariaDB 5.5.x

Source: Internet
Author: User

However, for those who have been using MySQL for a long time and are familiar with the MySQL ecosystem, changing MySQL is not so urgent. After all, it is not until the end of the day.

However, it is time to come. Before Gentoo portage, the MySQL 5.5 upgrade option was available. As soon as I upgraded it, MySQL 5.5 won't be able to change. The reason is unknown and I am too lazy to check it, so I set up mask to use the old version temporarily.

It's time to come. The recent Portage seems to be forced to use 5.5. Getoo MySQL 5.5 provides MySQL and MariaDB options.

Currently, MariaDB is a better choice than MySQL [2]. At least you should not be afraid to cut down the Product from Oracle. After all, the main Oracle database is not MySQL.

I checked that the Gentoo Forum [3] does not seem to have any information about the upgrade to MariaDB, so I am prepared to upgrade it with confidence. (Gentoo is often used to know that sometimes it is not so smooth)

But it's really easy to upgrade it. The following are the steps:

(1) Stop MySQL

 
 
  1. $ /etc/init.d/mysql stop 

(2) Remove the line about virtual/mysql-5.5 from/etc/portage/package. mask

(3) install MariaDB

 
 
  1. $ emerge -aV MariaDB 

(4) upgrade configure file.

 
 
  1. $ etc-update 

(5) upgrade MySQL database

 
 
  1. $ mysql_upgrade –password= 

(6) Updating the MySQL Library of the system is the most difficult, but you have to solve it yourself when using Gentoo.

$ Revdep-rebuild

It seems to be normal at the moment. I hope there will be no major problems.

[1] Oracle Makes More Moves To Kill Open Source MySQL

[2] MariaDB versus MySQL-Features

[3] MySQL-> MariaDB howto?

Edit recommendations]

  1. MariaDB 5.3 will support the alter table progress prompt
  2. The founder of MySQL builds MariaDB fully compatible with MySQL 5.1.
  3. MariaDB 2 anniversary
  4. How to optimize your MongoDB in five steps
  5. Development History of NoSQL in Enterprises

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.