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

    Joined:
    Jan 10, 2013
    Messages:
    8
    Likes Received:
    1
    Trophy Points:
    3
    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

    Joined:
    Apr 11, 2011
    Messages:
    44,343
    Likes Received:
    1,851
    Trophy Points:
    363
    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

    Joined:
    Oct 20, 2009
    Messages:
    1,010
    Likes Received:
    87
    Trophy Points:
    78
    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.
     
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