OK,
I have PHP5 and mySQL installed. I installed Drupal in localhost.

I next created a database using phpmyadmin and copied the database.mysql code into the phpmyadmin SQL box. I ran the code successfully (55 tables created). My admin username and password are established in phpmyadmin and I also changed the settings on the setting.php file

My admin user has all privledges for the database.

When i access http://localhost/index.php i get the following:

"unable to select database"

any ideas?
thanks

Comments

erdemkose’s picture

What kind of "Unable to select database" error do oyu see? Is it a themed Drupal error or something like PHP error?

I think you didn't write correct database name to your $db_url variable in your settings.php. It should look like

  $db_url = 'mysql://databaseuser:databasepassword@localhost/databasename';
  $db_prefix = '';

Check if your databasename is correct.
If you are using any prefix in your table names change $db_prefix but I think you are not, so leave it unchanged.

Don't forget to set your base url

$base_url = 'http://localhost';  // NO trailing slash!

or

$base_url = 'http://localhost/path/to/drupal';  // NO trailing slash!

--------------------------------------------------------------
http://www.students.itu.edu.tr/~koseer/drupal/ - works on PHP-TXT-DB database layer.

firebug’s picture

thanks, i reinstalled but now have new issue ....see new post

drlingo’s picture

I too use the WAMP server on my notebook and find I'm having difficulty logging into admin or creating an account I get this error:

Not Found

The requested URL /ispeak/articlesd/\wamp\www\ispeak/ was not found on this server.

Where can I set the config so the dir can be found?