Need some help

Discussion in 'PHP' started by offipuppi, May 20, 2014.

  1. #1
    So, getting a parse error. Total noob to this, need some help.

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'legionbo_user'@'localhost' (using password: YES) in /home/a9670145/public_html/lib/class_db.php on line 76
    
    Code (markup):
     
    offipuppi, May 20, 2014 IP
  2. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #2
    Well, you have an error in the login/user and password for connecting to your database. Maybe the username is wrong, maybe the password is wrong (it's using a password for access, doesn't mean that there is actually a password, just that the access with password is activated (the password can be blank)).
    It might also be that 'localhost' is not the correct name for the db-server.
     
    PoPSiCLe, May 20, 2014 IP
  3. offipuppi

    offipuppi Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    1
    #3
    Okay, kinda figured that reading up on other forums. How do I go about fixing this?
     
    offipuppi, May 20, 2014 IP
  4. AsHinE

    AsHinE Well-Known Member

    Messages:
    240
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    138
    #4
    Usually your hosting company provides you with credentials to connect to database or you can change them in your hosting control panel.
     
    AsHinE, May 21, 2014 IP
  5. coolpavan

    coolpavan Well-Known Member

    Messages:
    845
    Likes Received:
    30
    Best Answers:
    0
    Trophy Points:
    120
    #5
    login to your control panel ( usually cpanel )
    go to databases and create a new database and new user
    once done you can use the same credentials in your script to connect to the database
     
    coolpavan, May 21, 2014 IP
  6. chamika weerasinghe

    chamika weerasinghe Greenhorn

    Messages:
    7
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    21
    #6
    Error User Name and Password Create New one and change config file run again
     
    chamika weerasinghe, Jul 4, 2014 IP