Changes between Version 7 and Version 8 of faq/drupal/access-drupal-database-directly
- Timestamp:
- Oct 10, 2012, 10:06:46 PM (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
faq/drupal/access-drupal-database-directly
v7 v8 19 19 }}} 20 20 21 I n this file, look for the line that says something like:21 If you are running Drupal prior to version 7, look for the line that says something like: 22 22 23 23 {{{ 24 mysql://user-name:password@localhost/database _name24 mysql://user-name:password@localhost/database-name 25 25 }}} 26 26 In your `settings.php` file, your db username and password will be separated by a colon, as in the example above. Use this information to login via phpMyAdmin. 27 28 If you are running Drupal version 7 or higher, look for: 29 30 {{{ 31 $databases = array ( 32 'default' => 33 array ( 34 'default' => 35 array ( 36 'database' => 'database-name', 37 'username' => 'user-name', 38 'password' => 'password', 39 'host' => 'localhost', 40 'port' => '', 41 'driver' => 'mysql', 42 'prefix' => '', 43 ), 44 ), 45 ); 46 }}}