HI,
If you are getting this error while accessing phpMyAdmin from the cPanel control panel, it's because of phpMyAdmin is not configured properly. You need to verify user "cpanel-phpmyadmin" exists or not by this command,
root@server ~]#grep cpanel-phpmyadmin /etc/passwd
If it doesn't exist, then you need to add this user "cpanel-phpmyadmin" and it can be done by this command.
#useradd cpanel-phpmyadmin -d /var/cpanel/userhomes/cpanel-phpmyadmin
Now, assign appropriate ownership to /var/cpanel/userhomes/cpanel-phpmyadmin
#chown cpanel-phpmyadmin.cpanel-phpmyadmin /var/cpanel/userhomes/cpanel-phpmyadmin -R
Restart mysql and try once again to access phpMyAdmin.
Now, you can access phpMyAdmin without any issue.
Thank you,