Always Get Better

Drupal Stuck at Database Configuration

When configuring Drupal 6.6 on a Windows XP/Apache/MySQL box, I ran into an issue whereby I would enter the database information on the Database Configuration screen, press the advance button, but be constantly redirected back to the Database Configuration screen.

The Drupal community indicates this is a problem with permissions – Drupal needs to be able to write to your site’s settings.php file.  All permissions appeared to be correct in my setup but I was still unable to continue.

The solution was to edit the settings.php file, putting in my database information manually.  Just look for this line:

$db_url = ‘mysql://username:password@localhost/databasename’;

And change the username, password and databasename parts.

Then return to the Database Configuration screen, enter the information again and continue.  The correct database information will be read from the settings file and the configuration will continue to the next step.

Happy hunting!

Tags: , , ,

7 Responses to “Drupal Stuck at Database Configuration”

  1. […] November was a month of Flex, Adobe woes, a change in providers, Drupal databases, Drupal layout, and Drupal administration. I launched a second blog – this time politically-related […]

  2. sitron says:

    indeed…
    thanks!

  3. Jason says:

    Awesome – Quick and easy workaround to a frustrating problem! Thanks!

  4. r3 says:

    you’r a genuis.. how is that they did not mention it clearly on drupal website ??

  5. iceeer says:

    During the installation not renamed the file /sites/default/default.settings.php to /sites/default/settings.php.,just copy it

  6. Hi, thanks. me had the very same problem.

    Got it fixed ! CHEERS !

  7. Aamir says:

    In Drupal what is the file name and location where i can edit DB connection detail?

Leave a Reply