艾歐踢論壇

標題: MariaDB与MySQL兼容性比较 [打印本頁]

作者: admin    時間: 2015-11-22 08:11
標題: MariaDB与MySQL兼容性比较
MariaDB是MySQL代码级量身定制的替代者

  鉴于所有应用,MariaDB都是MySQL的代码级量身定制的替代者,相应的版本可以直接替换(如MySQL 5.1 -> MariaDB 5.1MariaDB 5.2 & MariaDB 5.3也是兼容的。MySQL 5.5将与兼容),具体是:

  意思也就是,在大多数情况下,你只要卸载MySQL后,安装MariaDB后就可工作(在使用相同的主版本(如5.1版)的情况下,不需任何数据文件的转换).

  我们每月都会将MySQL基本代码编译入MariaDB,从而保证MariaDB与Oracle添加的任何补丁和更新的MySQL相兼容。

  同时我们为了容易地从从MySQL 5.0升级到MariaDB 5.1,我们在升级脚本上也做了大量的工作。

  也就是说:相对于MySQL,MariaDB有更多新选项、扩展、存储引擎及漏洞修复,你可以在MariaDB的不同之外页上查看详细。

MariaDB 5.1与MySQL 5.1不兼容部分

  为了提供更多、更好的性能,MariaDB在有些地方与MySQL难免有所不兼容。

  下面列出的是从用户使用角度,你可能看到的MariaDB 5.1与 MySQL 5.1不同之外。

MariaDB 5.2与MySQL 5.1不兼容部分

The list is the same as between MariaDB 5.1 and MySQL 5.1, with one addition:

For all practical purposes, MariaDB 5.2 is a drop in replacement for MariaDB 5.1 and MySQL 5.1.

MariaDB 5.3与MySQL 5.1、MariaDB 5.2不兼容部分MariaDB 5.5MariaDB 5.3不兼容部分XtraDB

Percona, the provider of XtraDB, does not provided all earlier features of XtraDB in the 5.5 code base. Because of that,MariaDB 5.5 can't provide them either.

XtraDB options missing in 5.5

The following options are not supported by XtraDB 5.5. If you are using them in any of your my.cnf files, you should remove them before upgrading to 5.5.

XtraDB options that has changed default value[size=0.8em]
OptionOld valueNew value
innodb_adaptive_checkpointTRUE FALSE
innodb_change_bufferinginserts all
innodb_flush_neighbor_pages1 area

New options in XtraDB 5.5

The following new options has been added to XtraDB / InnoDB in 5.5. (Listed here just to have all XtraDB information in the same place)

See also Perconas guide of how to upgrade to 5.5

旧的、也不支持的配置选项

If you are using any of the following options in your /etc/my.cnf or other my.cnf file you should remove them. This is also true for MySQL 5.1 or newer:

Replacing a MySQL RPM

If you uninstalled a MySQL RPM to install MariaDB, note that the MySQL RPM on uninstall renames /etc/my.cnf to/etc/my.cnf.rpmsave.

After installing MariaDB you should do the following to restore your old configuration options:

mv -vi /etc/my.cnf.rpmsave /etc/my.cnf

Login or signup to receive notifications when this page changes.









歡迎光臨 艾歐踢論壇 (http://www.iot.idv.tw/ucenter/) Powered by Discuz! X3.2