Drupalでは、データベース設定(データベース、ユーザー名、パスワード、ホストなど)を設定するためのベストプラクティスは何ですか? sites/default/default.settings.php
でDrupal - データベース設定のベストプラクティス
それは次のように述べている:
/**
* Database settings:
*
* The $databases array specifies the database connection or
* connections that Drupal may use. Drupal is able to connect
* to multiple databases, including multiple types of databases,
* during the same request.
*
* One example of the simplest connection array is shown below. To use the
* sample settings, copy and uncomment the code below between the @code and
* @endcode lines and paste it after the $databases declaration. You will need
* to replace the database username and password and possibly the host and port
* with the appropriate credentials for your database system.
*
* The next section describes how to customize the $databases array for more
* specific needs.
*
* @code
* $databases['default']['default'] = array (
* 'database' => 'databasename',
* 'username' => 'sqlusername',
* 'password' => 'sqlpassword',
* 'host' => 'localhost',
* 'port' => '3306',
* 'driver' => 'mysql',
* 'prefix' => '',
* 'collation' => 'utf8mb4_general_ci',
*);
* @endcode
*/
$databases = array();
しかし、どのような開発環境と本番環境が異なるデータベースの設定を持っているだろうか?