Script Error - Please help

Discussion in 'Troubleshooting' started by hamernik, Jan 29, 2009.

  1. hamernik

    hamernik New Member

    Joined:
    Jan 14, 2008
    Messages:
    10
    Hi. Just updated to a cpanel server and am getting this error:

    Script Error
    Cannot connect to MySQL: Access denied for user 'hamernik'@'localhost' (using password: YES)

    The site uploaded correctly. The database uploaded correctly. The database name changed as follows: database_one to databaseone

    Any ideas how to correct?
  2. zenpig66

    zenpig66 aMember Pro Customer

    Joined:
    Jan 1, 2009
    Messages:
    72
    in CPanel your database name is going to be your userid_databasename and same for the user you gave priviledges to...it will be userid_username. So, both of these incorporate underscores where the password for the user doesn't.

    examp...your user login for CPanel is "chevy" and you named your database amember. You created a user "ford" for the database with the password of "toyota".

    databasename="chevy_amember"
    user="chevy_ford"
    pass="toyota"

    bear in mind there are character limits in play, too. And don't forget to not only create a user for the db but to grant permissions for that user to the db.

    sorry for the cars...not too imaginative at the moment :) Let me know if it works for I run several CPanel servers and am familiar with it's quirks.

Share This Page