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

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.

主站蜘蛛池模板: 光泽县| 新余市| 乡宁县| 宁陕县| 永济市| 宁国市| 武平县| 湛江市| 榕江县| 绥江县| 韩城市| 璧山县| 吉木萨尔县| 东明县| 靖西县| 桓台县| 磐安县| 兰西县| 巨鹿县| 高陵县| 邹平县| 全南县| 乾安县| 合水县| 荆州市| 鹿泉市| 瑞安市| 离岛区| 永城市| 武安市| 桃江县| 柏乡县| 莱西市| 西贡区| 凤台县| 德阳市| 体育| 阳江市| 都安| 蒙阴县| 福泉市|