Migrate from MySQL to MariaDB in Linux

Source: Internet
Author: User

So I decided to migrate all my servers from MySQL to MariaDB.

It is easy for Arch users to follow the official news:

 
 
  1. systemctl stop mysqld 
  2. pacman -S mariadb libmariadbclient mariadb-clients 
  3. systemctl start mysqld 
  4. mysql_upgrade -p 

OpenSUSE is even dumb. After all, it is the default: zypper in mariadb is enough.

Debian/Ubuntu users are a little more complicated, but the entire process is still smooth:

First, select an appropriate source from MariaDB's official Repository Configuration Tool, and put the address to the bottom of the/etc/apt/sources. list file:

 
 
  1. # MariaDB 5.5 repository list - created 2013-03-26 14:20 UTC 
  2. # http://mariadb.org/mariadb/repositories/ 
  3. deb http://mirror2.hs-esslingen.de/mariadb/repo/5.5/debian squeeze main 
  4. deb-src http://mirror2.hs-esslingen.de/mariadb/repo/5.5/debian squeeze main 

Run the following command:

 
 
  1. apt-key adv --recv-keys --keyserver keyserver.ubuntu.com 0xcbcb082a1bb943db 
  2. apt-get update 
  3. apt-get install mariadb-server mariadb-client 

MySQL or Percona) is automatically uninstalled and replaced with MariaDB. In some specific environments, you may need to execute these commands:

 
 
  1. apt-get autoremove 
  2. apt-get upgrade # or apt-get dist-upgrade 
  3. mysql_upgrade -p 

Then we can get it done! Do whatever you want

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.