PDO和MariaDB

扫码查看
本文介绍了PDO和MariaDB的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在PHP中使用PDO已有一段时间了,现在已经使用MySQL.

I've been using PDO in PHP for a while now utilizing MySQL.

但是,最近的事态发展使我认为MySQL将会逐渐取代取代MariaDB,尤其是自MariaDB以来:

However, recent developments have made me think that MySQL will start fading out in replacement of MariaDB especially since MariaDB:

  • 在不将新开发内容投入付费领域(例如集群)的情况下,将自己比MySQL领先许多开发者.
  • 在Oracle接手之后,大多数主要的MySQL开发人员都迁移到了MariaDB.
  • 正在成为替代各种Linux发行版上的MySQL的默认数据库.
  • 正在取代MySQL,并且大公司开始采用Wikipedia之类的MariaDB(在此处阅读博客文章).
  • Consider themselves many developer years ahead of MySQL without putting new developments into paid areas (clustering for example).
  • The majority of the main MySQL developers moved to MariaDB after Oracle took over.
  • Is becoming the default database to replace MySQL on various Linux distributions.
  • Is a drop in replacement of MySQL and large companies are starting to adopt MariaDB such as Wikipedia (Read the blog post here).

所以我的问题是,由于MariaDB似乎未列在PDO驱动程序中,并且看到MariaDB被设计为替代产品",并且有可能在将来逐步淘汰MySQL.

So my question is, since MariaDB doesn't appear to be listed in the PDO drivers and seeing as MariaDB is designed to be a "drop in replacement" and could potentially phase out MySQL in the future.

至少在正式的MariaDB驱动程序可用之前,我可以将MySQL PDO驱动程序与MariaDB数据库一起使用吗?

链接

  • PDO
  • MySQL
  • MariaDB

推荐答案

MariaDB和MySQL 99%兼容.这包括连接器兼容性.

MariaDB and MySQL are 99% compatible. This includes connector compatibility.

MariaDB工具作为MySQL工具(例如mysqldump)提供,并且数据文件也是二进制兼容的

edit: up to the point that MariaDB tools are shipped as MySQL tools (e.g. mysqldump), and data files are binary compatible, too

这篇关于PDO和MariaDB的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-04 04:57
查看更多