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.

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

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

Tags:
  1. stormy

    stormy Well-Known Member

    Joined:
    Nov 22, 2003
    Messages:
    122
    Likes Received:
    6
    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:
    542
    Likes Received:
    39
    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.
     
  3. stormy

    stormy Well-Known Member

    Joined:
    Nov 22, 2003
    Messages:
    122
    Likes Received:
    6
    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 Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    37,064
    Likes Received:
    1,287
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    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.
     
  5. rpvw

    rpvw Well-Known Member

    Joined:
    Jul 18, 2013
    Messages:
    260
    Likes Received:
    76
    Trophy Points:
    28
    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 ?
     
Loading...

Share This Page