官术网_书友最值得收藏!

Databases and MySQL

In the past, Drupal has supported two databases—MySQL and PostgreSQL. Drupal 7 and 8 have moved beyond this. Drupal now uses the powerful PHP Data Objects (PDO) library that is standard in PHP 7. This library is an abstraction layer that allows developers to support numerous databases, including MySQL, PostgreSQL, SQLite, and MariaDB.

The minimum database versions for Drupal 8.7 are as follows:

  • MySQL 5.5.3/MariaDB 5.5.20/Percona Server 5.5.8 or higher with PDO and an InnoDB-compatible primary storage engine
  • PostgreSQL 9.1.2 or higher with PDO SQLite 3.7.11 or higher
  • SQLite 3.7.11 or higher

Additionally, Drupal provides a powerful database API along with SQL coding conventions that make it easy to interact with your database—which, combined, allow you to write safe and portable SQL. However, more and more abstractions have been made at different levels, removing the need for SQL writing almost completely. However, we will still see some examples just so your toolbox does not miss anything, as well as cover all the tools at your disposal for querying your database.

主站蜘蛛池模板: 浑源县| 临湘市| 堆龙德庆县| 饶平县| 泌阳县| 钟祥市| 浠水县| 绥中县| 平谷区| 和政县| 长寿区| 手机| 金阳县| 建瓯市| 石景山区| 雅安市| 健康| 和硕县| 遵义市| 本溪| 古田县| 远安县| 禄丰县| 库尔勒市| 靖宇县| 偃师市| 英山县| 合山市| 天峨县| 沧州市| 呼和浩特市| 中阳县| 封开县| 宜阳县| 偏关县| 耿马| 长治县| 横山县| 凤庆县| 北海市| 富宁县|