Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

PHP can no longer access MySQL.

Discussion in 'Database Discussion' started by cvladybucks, Mar 5, 2009.

  1. cvladybucks

    cvladybucks Registered

    Mar 5, 2009
    Likes Received:
    Trophy Points:
    In the web host manager, I went to "Sql" and added an additional "access host." I put in localhost and then hit "click here" to activate it. It listed a few user accounts and appeared to work.

    Now the database doesn't work at

    I don't understand how that could have ruined it.

    The motivation for changing the setting in the first place is because I had trouble doing a mysql connect when editing the website and figured it was a permission setting. But after changing that, even parts of the website that used to work didn't.
    #1 cvladybucks, Mar 5, 2009
    Last edited by a moderator: Mar 5, 2009
  2. AlexandreVeezon

    AlexandreVeezon Well-Known Member

    Dec 9, 2005
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Can you put here the error?
    Already tried to create a new mysql user and reconfigure your php connection?
    Just php cannot access the MySQL?
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice