存储引擎 FAQ

MySQL的存储引擎是否与MariaDB兼容?

在大多数情况下,是的。MariaDB试图保持与MySQL的API兼容性,即使是在主要版本之间。

为MariaDB创建的存储引擎是否适用于MySQL?

大多数情况下,是的。它需要#ifdef来调整到MySQL-5.6 API,例如多读取范围API、表发现API等。但是,大部分代码将按原样工作,无需任何更改。

存储引擎二进制文件是否需要为MariaDB重新编译?

是的。您需要针对您打算在其上运行的MySQL或MariaDB的确切版本重新编译存储引擎。这是因为服务器版本存储在存储引擎二进制文件中,如果为不同版本编译,则服务器将拒绝加载它。

Comments

Comments loading...
Content reproduced on this site is the property of its respective owners, and this content is not reviewed in advance by MariaDB. The views, information and opinions expressed by this content do not necessarily represent those of MariaDB or any other party.