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

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 5/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 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

Additionally, Drupal provides a powerful database API along with some SQL coding conventions that make it easy to interact with your database--both 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.

主站蜘蛛池模板: 京山县| 买车| 宕昌县| 沾益县| 佛冈县| 尼勒克县| 海兴县| 溆浦县| 民权县| 尚志市| 横山县| 郸城县| 托克托县| 神池县| 甘德县| 景东| 重庆市| 湖南省| 永嘉县| 潍坊市| 镇原县| 噶尔县| 奎屯市| 石景山区| 凤阳县| 五台县| 台前县| 北海市| 新津县| 西昌市| 碌曲县| 新郑市| 潞城市| 平谷区| 呼伦贝尔市| 天峨县| 商丘市| 桦南县| 襄城县| 扎赉特旗| 田阳县|