The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Disable DNS (hostname) lookup for MySQL

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

  1. Sindre

    Sindre Well-Known Member

    Joined:
    Aug 25, 2008
    Messages:
    46
    Likes Received:
    0
    Trophy Points:
    6
    Hello,

    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,745
    Likes Received:
    662
    Trophy Points:
    113
    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.
     
Loading...

Share This Page