If your installing Drupal (even on localhost) if you get stuck on the Database Configuration page open ./sites/default/settings.php and change the $db_url variable to your database settings.

Depending on the type of database your using this is what your variable will look like.
$db_url = ‘mysql://username:password@localhost/databasename’;
$db_url = ‘mysqli://username:password@localhost/databasename’;
$db_url = ‘pgsql://username:password@localhost/databasename’;

In the case of my localhost install that line would be:
$db_url = ‘mysql://root:root@localhost/drupal’;

Drupal being the name of my database. Username and password are always root with mamp.


5 Comments

Leave a Reply




XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Free Wordpress Themes

Simple and easy to adjust for your needs.

How to:

Write your own wordpress theme. Everything you need to know.
Categories
Recent Comments

Anny: actually, 32/(2*pi) is roughly 5 inches. a 2-inch radius circle is really, really small for your waist…

heartburn no more book: First of all I would like to say great blog! I had a quick question in which I’d like...

Basic computer skills windows xp: Furnished with fundamental expertise inside pc for instance typing as well as...

baba: thanks you!!

PJC: THANK YOU SO MUCH!!!!!!!!!!!!!! :razz:

Subscribe
 RSS Feed

Or via email:


Follow eruANNA