简体   繁体   English

从MySQL迁移到MariaDB

[英]Migrating from MySQL to MariaDB

I am migrating my database to MySQL to MariaDB. 我正在将我的数据库迁移到MySQL到MariaDB。 I have binary storage engine in MySQL and MariaDB does not support it. 我在MySQL中有二进制存储引擎,MariaDB不支持它。

How can I convert this to make sure my tables will works? 我怎样才能将其转换为确保我的表格有效? Thank You 谢谢

If this is a binary engine that works with MySQL and you have the source for it, then you should be able to easily port it to MariaDB: 如果这是一个与MySQL配合使用的二进制引擎,并且您拥有它的源代码,那么您应该能够轻松地将它移植到MariaDB:

  • The storage engine interface is 99 % identical. 存储引擎界面99%相同。 We have mainly move some functionality from the storage engine (like statistic counting) to the handler interface which should be trivial to fix. 我们主要将一些功能从存储引擎(如统计计数)移动到处理程序接口,这应该是很容易修复的。
  • A few server functions may have changed names, but nothing that should not be almost trivial to figure out. 一些服务器功能可能已经更改了名称,但没有什么不应该是几乎无关紧要的。

In practice one should be able to port a storage engine for MySQL to MariaDB within 30 minutes or so. 在实践中,应该能够在30分钟左右的时间内将MySQL的存储引擎移植到MariaDB。

If you don't have the source code, you need to ask the vendor for the storage engine to support MySQL. 如果您没有源代码,则需要请求供应商提供支持MySQL的存储引擎。 They should be able to do that without much trouble (as long it's a true plugg-in storage engine and not something that makes big changes to the MySQL/MariaDB upper level code). 他们应该能够毫不费力地做到这一点(只要它是真正的插件存储引擎,而不是对MySQL / MariaDB高级代码进行重大更改的东西)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM