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!

Disable MySQL acces to cPanel username, Possible ?

Discussion in 'Security' started by QuentinC, Mar 4, 2014.

  1. QuentinC

    QuentinC Member

    Jan 10, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    Hi cPanel user, support,

    We have a lot beginners cPanel users who use cPanel username for connecting CMS like Joomla/WordPress... to access database and not MySQL (sub)user; It's really bad to make it !

    Is-it possible to disable MySQL access for cPanel account ? I think this access must be able for PHPmyAdmin in cPanel part, but somebody have a trick for do this ? :)

    Best regards.
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Hello :)

    You can change the password for the MySQL username via:

    "WHM Home » SQL Services » Change MySQL User Password"

    However, you may want to open a feature request for the inclusion of an option to disable/modify the default MySQL username created with new accounts:

    Submit A Feature Request

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

    quizknows Well-Known Member

    Oct 20, 2009
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    DataCenter Provider
    This actually does raise a really good point, it's a pretty bad security risk when people use their cPanel username/password for a plain text db config file.

    Changing the cPanel users MySQL password to differ from the cPanel password should work as a workaround, as mentioned by Michael.

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