Community & Support

Database problems with new installation on localhost

I am trying to set up a test site on my computer using WAMP.

I have WAMP set up, and have downloaded Drupal 6.3 into the www folder.

I have set up a database using phpmyadmin and created settings.php with the appropriate details.

When I go to http://localhost/drupal I get a screen full of error messages that are basically saying that the database doesn't contain the right tables. I thought the installer was going to populate the database for me.

I found some instructions telling me to import a database file from the includes folder, but I have tried with all of the database files, and every one gives me a screenful of sql error messages.

Please, can someone help me before I pull the rest of my hair out? I am completely new to Drupal - hence the test site, so please don't assume any prior knowledge!

Comments

And you did this ... why?

and created settings.php with the appropriate details

Why?

Drupal creates that file automatically. You do not need to create it manually. If you do, then the installer will assume your database is already configured, and it won't create the tables.

Delete the settings.php file you created, and start over.

My guess: Because the INSTALL.txt file in the tarball explicitly tells you to create the settings file, BEFORE you run the install script.

Broken documentation, please fix.

I had exactly the same problem, and I needed to do this:

1. Install files
2. Go to site
3. Create settings file manually, after being told in step 2 to make it

I think it would also work if I had navigated to the install.php script manually after making the settings file, but I'm not sure.

Ahhh - thank you. I deleted

Ahhh - thank you. I deleted settings.php and it's running properly now (although I then had to create it as an empty file).

Why one earth is there such a basic error in the documentation???

I've set up other systems before, and never had any trouble. When I read that Drupal was very user friendly (on the Drupal site...) I assumed this would be really straightforward. Having followed the documentation instructions my perception is now that Drupal is going to be a pain in the neck. I hope this is going to change as I develop the site, but wasting several hours on a false instruction is a really bad start.

Please speak slowly and clearly - bear with me, I'm learning all the time.

Please speak slowly and clearly - bear with me, I'm learning all the time.

The documentation does not

The documentation does not tell you to enter any manual customizations into the copy (or blank) version of settings.php before installation. It only says to make a copy of default.settings.php and call it settings.php (or make a blank file called settings.php), and to ensure it has correct permissions on the file to be writable. The Drupal installer then collects the MySQL info during setup and enters it into the file along with any other changes it makes.

-- David
absolutecross.com

nobody click here