MySQL Problem!!!

Discussion in 'QnA (read only)' started by gursimran_2006, Oct 17, 2006.

Thread Status:
Not open for further replies.
  1. gursimran_2006

    gursimran_2006 New Member

    Joined:
    Sep 26, 2006
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    In ur Dreams
    I am creating Site with PHP Nuke. the problem is with editing the config.php file.
    Here is da default settings:
    $dbhost="localhost';
    $dbuname="root';
    $dbpass="";
    $dbname="nuke';
    $dbhost="localhost'.


    Please Help me to edit this file!!!
     
  2. tuxfan

    tuxfan New Member

    Joined:
    Feb 4, 2004
    Messages:
    2,653
    Likes Received:
    9
    Trophy Points:
    0
    Location:
    Mumbai
    $dbhost is defined twice, so remove one at the bottom (because it anyway misses the ; and so will give an error).

    What hosting control panel do you have?

    You will have to follow the following steps:
    1. Create a MySQL database. No need to specify any tables, etc. php nuke installation script will take care of it ;)
    2. Create a MySQL user with a password.
    3. Grant "ALL" permissions to the user over that MySQL database.
    4. Specify the username in $dbuname
    5. Specify the password of that user in $dbpass
    6. Specify the name of the database in $dbname
    7. Leave $dbhost as it is. Of course, if your DB is not in your hosting account and is somewhere else, you will have to specify this. But its very unlikely to be that way.
    For the first 3 steps, you will have to login to your control panel. It is pretty simple but if you have not done it before then it may look a little confusing. But you can't go wrong ;)
     
  3. OP
    OP
    gursimran_2006

    gursimran_2006 New Member

    Joined:
    Sep 26, 2006
    Messages:
    92
    Likes Received:
    0
    Trophy Points:
    0
    Location:
    In ur Dreams
    thank you very much
     
  4. tuxfan

    tuxfan New Member

    Joined:
    Feb 4, 2004
    Messages:
    2,653
    Likes Received:
    9
    Trophy Points:
    0
    Location:
    Mumbai
    :) You are welcome
     
Thread Status:
Not open for further replies.

Share This Page