Drupal Database

Introduction

Drupal uses a lightweight database abstraction layer between the code and the database.

Database Parameters

In the sites/all/settings.php file.

Database Abstraction Layer

Drupal determines the type of database to connect to by inspecting the $db_url variable inside settings.php.

Connecting to the Database

Drupal connects to the database as part of its normal bootstrap process.

Performing Queries

Function db_query() is used to execute a query.

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-Share Alike 2.5 License.