Skip to main content

mysql error on log access denied

Comments

3 comments

  • ServerHealers
    It is possible something else configured in your server having wrong password and it keep trying to authenticate. We had a situation in the past on a customer server, where the MySQL monitor script they had for Nagios causing this after a MySQL root password reset as they forgot to update the new password in the script. It could be something similar, and correcting it would stop it. Alternatively, it could be a website hosted on your server with root user and a wrong password in its config file (This is not a recommended approach I know, however, I've seen some people doing this when they follow some online articles). If this is the case, I'd suggest creating a new MySQL user and assign it to the site's database and put that new user details in the config file instead of root user.
    0
  • leonep
    great, thanks for the help. but how did you understand and identify that it was that specific script for nagios ?
    0
  • ServerHealers
    As a first step, we confirmed with the customer whether they used any monitor inhouse or by a previous management company and proceed further once they confirmed that they used Nagios for monitoring the server. It was easy for us when we get that information, and saved a lot of time.:) If you have similar setup, I'd suggest looking at /etc/nrpe.d/ directory for any Nagios configs where we usually configure checks or could be /etc/check_mk/mysql.cfg if CheckMk in use. If these are not, then it would be time consuming in troubleshooting where exactly these logins are configured incorrectly.
    0

Please sign in to leave a comment.