1 頁 (共 1 頁)

MySQL 改 MariaDB

發表於 : 2014年 2月 26日, 21:09
kt
一堆程式使用期限到期,花了兩天終於更新完畢:
  • FreeBSD 8.3 --> 8.4
  • PERL 5.12 --> 5.16
  • MySQL 5.5 --> MariaDB 5.5
FreeBSD 由於停用 CVSup,花了一些時間讀了 Handbook,才知道怎麼 Upgrade。
MySQL 被甲骨文吃了,隨著 MediaWiki, Google 的腳步,改用 MariaDB。

分享一下我在 FreeBSD 成功的由 MySQL 轉換成 MariaDB 的經驗。

步驟:
解除 MySQL

代碼: 選擇全部

cd /usr/ports/databases/mysql55-server ; make deinstall
cd /usr/ports/databases/mysql55-client ; make deinstall
安裝 MariaDB

代碼: 選擇全部

cd /usr/ports/databases/mariadb55-server ; make install clean
重啟

代碼: 選擇全部

/usr/local/etc/rc.d/mysql-server start
更新

代碼: 選擇全部

mysql_upgrade -u root -p
其實...就和平常更新版本一樣,完全沒有感覺有什麼不一樣,而且系統完全相容。

另外,依據 MariaDB 官網的說明:MySQL 5.6 對應的版本是 MariaDB 10.0 Series。