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 No se puede iniciar sesión en el servidor MySQL
I looked after the following guide: http://ifzenelse.net/en/install-and-configure-phpmyadmin-centos
preguntado el 09 de septiembre de 13 a las 21:09
There was a conflict: the phpMyAdmin configuration that says to not allow login without a password (
$cfg['Servers'][$i]['AllowNoPassword']= FALSE;), but my mysql user (root) had no password so I couldn't login!
So as mentioned in one of the answers aquí I had to set password to the root user by:
# mysqladmin -u root password your-password
Then restart servers and login again
Following steps would help you to login phpmyadmin without password.
- Search for config.inc.php in phpmyadmin package. If not found, rename config.sample.inc.php to config.inc.php
- Search $cfg['Servers'][$i]['AllowNoPassword'] = false; and make it $cfg['Servers'][$i]['AllowNoPassword'] = true;
Now you would be able to login successfully.