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!

MySQL error log full of [Warning] Access denied for user ''@'localhost' (using password: NO)

Discussion in 'Database Discussion' started by stormy, Nov 26, 2016.

Tags:
  1. stormy

    stormy Well-Known Member

    Joined:
    Nov 22, 2003
    Messages:
    127
    Likes Received:
    8
    Trophy Points:
    168
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    I'm trying to fine-tune MySQL and troubleshoot a few issues, so I enabled log-warnings=2. I see that the MySQL error log is full of these:

    [Warning] Access denied for user ''@'localhost' (using password: NO)

    I suppose it's a user with a misconfigured site/connection. Is there any way to track the source of this?
     
  2. SysSachin

    SysSachin Well-Known Member

    Joined:
    Aug 23, 2015
    Messages:
    604
    Likes Received:
    43
    Trophy Points:
    28
    Location:
    India
    cPanel Access Level:
    Root Administrator
    Twitter:
    You will have to find out all sites MySQL details from site configuration files. Could you please let me know how many sites you have hosted on your server? You can find out all sites databases details through command line using grep or any other command.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. stormy

    stormy Well-Known Member

    Joined:
    Nov 22, 2003
    Messages:
    127
    Likes Received:
    8
    Trophy Points:
    168
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Well, there are about 500 accounts on this particular server. Not sure what to grep for...
     
  4. cPanelMichael

    cPanelMichael Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,803
    Likes Received:
    1,898
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    Hello,

    The following thread discusses a solution that would help if you want to log this activity in the future:

    Access Logs for MySQL

    However, note that it's not enabled by default so you won't be able to go back and review past connections.

    Thank you.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  5. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    835
    Likes Received:
    302
    Trophy Points:
    113
    Location:
    Spain
    cPanel Access Level:
    Root Administrator
    Could these connections from an unspecified user be from the service manager checking to see if MySQL is alive ?
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
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