While resetting the cpanel account password from WHM
I saw above error after resetting the passwor.
I see the issue was due to the parameter
skip-name-resolve
in mysql config /etc/my.cnf
Removing the command and restarting the mysql fixed the issue
Keep your servers secure, optimized, and running smoothly with our reliable 24/7 server management and technical support.