121 * That is useful for primary/replica replication, as Drupal may try to connect 122 * to a replica server when appropriate and if one is not available will simply 123 * fall back to the single primary server (The terms primary/replica are 124 * traditionally referred to as master/slave in database server documentation). 119 * A target database allows Drupal to try to send certain queries to a 120 * different database if it can but fall back to the default connection if not. 117 * 118 * For each database, you may optionally specify multiple "target" databases. This is optional for projects managed with Composer if the 116 * driver's namespace is in Composer's autoloader. To add the driver's namespace to the autoloader, 114 * set the "autoload" property to the PSR-4 base directory of the driver's 115 * namespace. The code in this namespace must be autoloadable prior to connecting 112 * to the database, and therefore, prior to when module root namespaces are 113 * added to the autoloader. To use a contributed or 110 * custom driver, the "namespace" property must be set to the namespace of the 111 * driver. Other drivers 109 * can be provided by contributed or custom modules. 107 * 108 * Drupal core implements drivers for mysql, pgsql, and sqlite. For most other drivers, you must specify a 106 * username, password, host, and database name. For SQLite, you must 104 * specify a database file name in a directory that is writable by the 105 * webserver. The other 103 * properties will vary depending on the driver. This is usually the same as the name of the 102 * database type, such as mysql or sqlite, but not always. 99 * 100 * The "driver" property indicates what Drupal database driver the 101 * connection should use. Refer to the sample in the section above as a 98 * starting point. 95 * 96 * Many of the values of the $databases array can be customized for your 97 * particular database system. See also the last Fossies "Diffs" side-by-side code changes report for "": 10.0.9_vs_10.1.0-rc1.Ī hint: This file contains one or more very long lines, so maybe it is better readable using the pure text view mode that shows the contents as wrapped lines within the browser window.ġ 'databasename', 81 * 'username' => 'sqlusername', 82 * 'password' => 'sqlpassword', 83 * 'host' => 'localhost', 84 * 'port' => '3306', 85 * 'driver' => 'mysql', 86 * 'prefix' => '', 87 * 'collation' => 'utf8mb4_general_ci', 88 * ] 89 * 90 */ 91 $databases = 92 93 /** 94 * Customizing database settings. As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) PHP source code syntax highlighting (style: standard) with prefixed line numbers and code folding option.Īlternatively you can here view or download the uninterpreted source code file.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |