1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Drupal MySql Help...

Discussion in 'Drupal' started by Nanofied, Feb 1, 2006.

  1. #1
    I need some help setting up my drupal settings file, so that it connects to my database. Can someone help me? This is my first time doing this, and im not used to it. The databse is already set up and installed, I just need help editing the settings file. Thanks!
     
    Nanofied, Feb 1, 2006 IP
  2. subseo

    subseo Guest

    Messages:
    652
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #2
    sites/default/settings.php

    What you need to change is:
    
    $db_url = 'mysql://username:password@localhost/database';
    $db_prefix = ''; 
    $base_url = 'http://localhost'; 
    
    Code (markup):
    The file is also well commented above each parameter.
     
    subseo, Feb 1, 2006 IP
  3. Nanofied

    Nanofied Guest

    Messages:
    1,028
    Likes Received:
    50
    Best Answers:
    0
    Trophy Points:
    0
    #3
    I was using the new beta, and my settings file does not look like that? Do you know why?
     
    Nanofied, Feb 1, 2006 IP
  4. subseo

    subseo Guest

    Messages:
    652
    Likes Received:
    38
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Just downloaded the beta, and I see the same....

    you have to scroll down to find these lines, in fact all you shall care about are those uncommented lines, they are in second half of the file, each on a different line, I have just extracted/compressed the above three lines, but they are not immediately after each other in the file.....

    Example of how to fill:
    
    $db_url = 'mysql://xx_dbuser:topsecretpassword@localhost/xx_dbname';
    $db_prefix = ''; 
    $base_url = 'http://www.example.com'; 
    
    Code (markup):
     
    subseo, Feb 1, 2006 IP