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.

Connect to database

Discussion in 'Database Discussions' started by genka2, Jan 22, 2014.

  1. genka2

    genka2 Member

    Joined:
    Dec 30, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Please help about this eror
    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'posmoder_posdata'@'localhost' (using password: YES) in /home/posmoder/public_html/includes/db_mysql.php on line 15

    Sorry, server is error. We coming soon.
    Could not connect to the database server "127.0.0.1", "posmoder_posdata".




    regard
     
  2. genka2

    genka2 Member

    Joined:
    Dec 30, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Please Help about this eror

    Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'posmoder_posdata'@'localhost' (using password: YES) in /home/posmoder/public_html/includes/db_mysql.php on line 15

    Sorry, server is error. We coming soon.
    Could not connect to the database server "127.0.0.1", "posmoder_posdata".

    regard

    genka
     
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    Is this a new installation of the script, or has it previously operated without issue? Check to make sure that database user is granted access to the database under the "MySQL Databases" option in cPanel.

    Thank you.
     
  4. genka2

    genka2 Member

    Joined:
    Dec 30, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    My website previously operated without issue, after i move my website to new hosts and update to new domain host server this problem appear. There is no problem with my email but my website cann't be access. I ceck the my "MySQL Database" there's no problem with my database

    Thank you
     
  5. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    675
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    You mentioned there is no problem with your database. Did you check to make sure the database username was added to the database? Also, did you verify the database username/password match what's used in your script?

    Thank you.
     
Loading...

Share This Page