Configurar phpMyAdmin con nombre de usuario y contraseña no permite iniciar sesión

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

2 Respuestas

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

contestado el 23 de mayo de 17 a las 12:05

Following steps would help you to login phpmyadmin without password.

  1. Search for config.inc.php in phpmyadmin package. If not found, rename config.sample.inc.php to config.inc.php
  2. Search $cfg['Servers'][$i]['AllowNoPassword'] = false; and make it $cfg['Servers'][$i]['AllowNoPassword'] = true;

Now you would be able to login successfully.

contestado el 14 de mayo de 14 a las 11:05

No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas or haz tu propia pregunta.