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 DNS (hostname) lookup for MySQL

Discussion in 'Database Discussion' started by Sindre, Apr 21, 2014.

  1. Sindre

    Sindre Well-Known Member

    Aug 25, 2008
    Likes Received:
    Trophy Points:

    I would like to start MySQL with "skip-name-resolve" to get rid of the overhead caused by the DNS lookup.

    However, I noticed that when adding new MySQL users in cPanel, it adds it as user@'hostname' to the grants table. This cause the authentication to fail when name resolve is disabled.

    Is it possible to have cPanel create the grants as @localhost or use the IP address instead? I know I can manually update the grants table, but that is not possible as users add new MySQL users all the time.

    Looking forward to your advise.
  2. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    There are no native options that would allow you to modify how the MySQL users are created through cPanel. I suggest opening a feature request, perhaps for the ability to dictate how the users are created, via:

    Submit A Feature Request

    Thank you.
    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