MariaDB 和 MySQL 比較

來源:互聯網
上載者:User

現在選擇繼續使用MySQL或拋棄它切換到MariaDB有足夠的理由。

MariaDB 部落格上的效能測試。

MariaDB是MySQL原始碼的一個分支,在意識到Oracle會對MySQL許可做什麼後分離了出來(MySQL先後被Sun、Oracle收購)。這些擔憂是有依據的,我會在本文的後面講到。除了作為一個Mysql的“向下替代品”,MariaDB包括的一些新特性使它優於MySQL。

在介紹這些特性前,我想先談談MariaDB的版本編號模式。首先,MariaDB版本與Mysql版本相匹配——比如MariaDB 5.1,與MySQL 5.1使用相同的代碼。由於更新和修複是針對MySQL源碼樹的,這樣的話MariaDB可以採納這些補丁(理論上,MariaDB每月都與MySQL源碼合并)。但是如果新的獨特特性定期添加的話,我想代碼校正肯定會是一個惡夢。

MariaDB團隊應該也意識到這一點,他們已經開始制定新的編號方案。最新的MariaDB版本(目前仍處於alpha狀態)是Maria 10.0,後面跟著一個小數:

mysql -P 3406 -u root -p

Enter password: ********

Welcome to the MariaDB monitor. Commands end with ; or \g.

Your MariaDB connection id is 1

Server version: 10.0.2-MariaDB mariadb.org binary distribution

Copyright (c) 2000, 2013, Oracle, Monty Program Ab and others.

Type ‘help;’ or ‘\h’ for help. Type ‘\c’ to clear the current input statement.

MariaDB [(none)]> select version();

+—————-+

| version() |

+—————-+

| 10.0.2-MariaDB |

+—————-+

1 row in set (0.01 sec)

MariaDB [(none)]>

MariaDB再三甚至有些散漫地解釋為什麼他們這樣做——儘管這樣讓開發人員感到不適,但它就是這樣。如果依舊完全相容Mysql的話他們不能繼續添加新特性。

至於新特徵?讓我們看一下其中的幾個。

更多詳情請繼續閱讀第2頁的內容:

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

推薦閱讀:

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

  • 1
  • 2
  • 3
  • 下一頁

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.