Home  >  Article  >  Database  >  MariaDB 和 MySQL 比较

MariaDB 和 MySQL 比较

WBOY
WBOYOriginal
2016-06-07 17:32:381556browse

MariaDB是MySQL源代码的一个分支,在意识到Oracle会对MySQL许可做什么后分离了出来(MySQL先后被Sun、Oracle收购)。这些担忧是有

现在选择继续使用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)

linux

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn