Can't add db user to db due to ER_PASSWORD_NO_MATCH error Print

  • 0

Symptoms

Adding a database user to a database results in the following error, or similar:

The system received an error from the “MySQL” database “mysql”: ER_PASSWORD_NO_MATCH (Can't find any matching row in the user table)

 

Cause

The MySQL option "skip-name-resolve" is enabled.

 

Resolution

Remove the "skip-name-resolve" option from the configuration file:

  1. Connect to your server through SSH as the "root" user
  2. Create a backup of your MySQL configuration before making changes:

     

 

  • cp -v /etc/my.cnf{,.$( date +%Y%m%d )} -v

  • Using your preferred text editor, open the MySQL configuration file at /etc/my.cnf.
  • Locate the following entry in the file and either remove it or comment it out:

    skip-name-resolve

  • Save the file and restart the MySQL service:

     

 

  1. /scripts/restartsrv_mysql

 

Additional Resources

Should I use skip-name-resolve in my.cnf?


Was this answer helpful?
Back