Ubuntu 上如何將 MySQL 5.5 資料庫遷移到 MariaDB 10

來源:互聯網
上載者:User

Ubuntu 上如何將 MySQL 5.5 資料庫遷移到 MariaDB 10

這篇文章是我們自己親手實驗過的,系統為 Ubuntu 14.04 server,Mysql 資料庫為 Mysql 5.5,準備遷移到 Maria DB 10.1 版本,關於其他版本的遷移方法詳細的說明你可以去官方查看,這裡我只說說我所實驗過的。

關於為什麼遷移到 MariaDB,知道 Oralce 收購 Sun 的使用者應該知道,當然這已經是幾年以前的事情了,本人一直不是很喜歡Oracle在MySQL上面的態度,自己要是安裝資料庫基本上都會使用 MariaDB。整個遷移過程基本無痛,也沒什麼需要特別設定的,相容性非常不錯。

首先先到MariaDB官方選擇一個合適的源,然後把給出來的地址放到 /etc/apt/sources.list 檔案底部:

# MariaDB 10.1 repository list - created 2014-11-17 01:55 UTC
# http://mariadb.org/mariadb/repositories/
deb http://mirrors.neusoft.edu.cn/mariadb/repo/10.1/ubuntu trusty main
deb-src http://mirrors.neusoft.edu.cn/mariadb/repo/10.1/ubuntu trusty main

儲存,然後輸入以下幾條命令:

sudo apt-get install software-properties-common
sudo apt-key adv --recv-keys --keyserver hkp://keyserver.ubuntu.com:80 0xcbcb082a1bb943db
sudo apt-get update
sudo apt-get install mariadb-server

安裝命令會自動卸載 Mysql 資料庫!安裝過程中會要求你重新設定密碼,按照提示操作就可以了,phpmyadmin也是預設支援的!

在 CentOS/RHEL/Scientific Linux 6 下安裝 LAMP (Apache with MariaDB and PHP)

MariaDB Proxy讀寫分離的實現

Linux下編譯安裝配置MariaDB資料庫的方法

CentOS系統使用yum安裝MariaDB資料庫

安裝MariaDB與MySQL並存

MariaDB 的詳細介紹:請點這裡
MariaDB 的:請點這裡

相關文章

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.