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!

New server install -> Applying privileges to user in cpanel doesn't update

Discussion in 'General Discussion' started by tutchmedia, Jan 14, 2015.

  1. tutchmedia

    tutchmedia Registered

    Joined:
    Jan 14, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi there,

    I have recently bought a dedicated server through FastHosts with WHM/Cpanel.

    After setting up, i have created a domain and begun by adding a MySQL database with username/password.

    When I link the domain to the user, and click apply all privileges, it successfully works.

    Now after inputting the details in my PHP script, I get a mysql connect error saying it can't connect.

    I've tried various different things but whilst snooping at the rootWHM phpmyadmin panel, under user i can see my username i set up and all the privileges are set to 'N'.

    No matter how many times i change it via cpanel, it still doesn't update.

    Does anyone have any ideas how to fix it?

    Thanks
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    43,711
    Likes Received:
    1,794
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello :)

    Have you verified that you are using the correct database name and username in the script configuration? Are you using "localhost" for the database host?

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. tutchmedia

    tutchmedia Registered

    Joined:
    Jan 14, 2015
    Messages:
    2
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hello :D

    Thank you for the reply. Yes, all was correct which is what is weird.

    Luckily, It was a new install with no data so I have reinstalled to see if it works now.

    I will update with the answer shortly :)
     
Loading...

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