Changes between Version 7 and Version 8 of faq/drupal/access-drupal-database-directly


Ignore:
Timestamp:
Oct 10, 2012, 6:06:46 PM (7 years ago)
Author:
Jamie McClelland
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • faq/drupal/access-drupal-database-directly

    v7 v8  
    1919}}}
    2020
    21 In this file, look for the line that says something like:
     21If you are running Drupal prior to version 7, look for the line that says something like:
    2222
    2323{{{
    24 mysql://user-name:password@localhost/database_name
     24mysql://user-name:password@localhost/database-name
    2525}}}
    2626In 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
     28If 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}}}