Configurar phpMyAdmin con nombre de usuario y contraseña no permite iniciar sesión
Frecuentes
Visto 7,483 veces
1
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
2 Respuestas
0
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
0
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.
contestado el 14 de mayo de 14 a las 11:05
No es la respuesta que estás buscando? Examinar otras preguntas etiquetadas mysql apache phpmyadmin lamp or haz tu propia pregunta.