I'm using phpMyAdmin on CentOS v6. Configured it to authentication type: cookie, I set username and password. (in /etc/phpMyAdmin/config.inc.php)
When I browse to http ://my-server/phpMyAdmin/ I get a web login form, I entered the username and password that I worte in the configuration file but it tells:
#1045 Cannot log in to the MySQL server
I looked after the following guide: http://ifzenelse.net/en/install-and-configure-phpmyadmin-centos