Sqlite Drupal:更改数据库默认类型

Sqlite Drupal:更改数据库默认类型,sqlite,drupal-7,Sqlite,Drupal 7,当我通过drupal安装新站点时,我显示以下消息:- The type of database your Drupal data will be stored in. Your PHP configuration only supports a single database type, so it has been automatically selected. 我需要添加数据库名称、用户和密码,但我看不到它,我可以在哪里添加它 它显示了以下错误:- In order for Drupal

当我通过drupal安装新站点时,我显示以下消息:-

The type of database your Drupal data will be stored in. Your PHP
configuration only supports a single database type, so it has been
automatically selected.
我需要添加数据库名称、用户和密码,但我看不到它,我可以在哪里添加它

它显示了以下错误:-

In order for Drupal to work, and to continue with the installation process, you must resolve all issues reported below. For more help with configuring your database server, see the installation handbook. If you are unsure what any of this means you should probably contact your hosting provider.

您会得到这样一条信息:您的系统只支持单一的数据库类型,因为Drupal无法在您的系统中找到连接到数据库所需的扩展。在本例中,Drupal假设您将使用Sqlite数据库,它应该要求您提供一个数据库文件名,没有用户或密码。如果您甚至没有看到该选项,那么您的系统可能根本不支持任何数据库

如果您想使用数据库服务器(MySql或postgres),您的系统上至少需要安装php pdo、php MySql(如果您使用postgres,则需要安装php pgsql)。如何安装这些php扩展取决于您的系统