The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Access denied for user test_test1@hostname .com

Discussion in 'Database Discussions' started by crazyaboutlinux, Apr 29, 2009.

  1. crazyaboutlinux

    crazyaboutlinux Well-Known Member

    Joined:
    Nov 3, 2007
    Messages:
    938
    Likes Received:
    0
    Trophy Points:
    16
    how to resolve below query which is getting by our client

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'test_test1@hostname .com' (using password: YES) in /home/systemin/public_html/includes/classes/class.DBMySql.php on line 21
    Unable to connect to database server!

    please help !!!!!
     
  2. JawadArshad

    JawadArshad Well-Known Member
    PartnerNOC

    Joined:
    Apr 8, 2008
    Messages:
    447
    Likes Received:
    4
    Trophy Points:
    18
    Location:
    PK
    cPanel Access Level:
    DataCenter Provider
    Try 'localhost' instead of 'hostname.com'. Make sure you have created this database user in cPanel and you are using the correct db username and password in class.DBMySql.php on line 21.
     
  3. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    397
    Likes Received:
    1
    Trophy Points:
    18
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
    It looks like your mysql user/pass is set wrong. Verify them in cpanel, or reset them if necessary. Also, check to make sure that the priviledges are assigned to the user and database.
     
Loading...

Share This Page