問題描述
我在 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 的替代品正在下降,大公司開始采用 MariaDB,例如維基百科 (在此處閱讀博文).
所以我的問題是,由于 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 100% 99% 兼容.這包括連接器兼容性.
MariaDB and MySQL are 100% 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的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!