简体   繁体   English

无法登录到localhost / phpmyadmin

[英]Unable to log in to localhost/phpmyadmin

i have a problem with my appserv, i am trying to log in to create a SQL database, however when i type in Localhost/phpmyadmin, it prompt the message box to fill in the username and password. 我的appserv出现问题,我试图登录以创建SQL数据库,但是当我输入Localhost / phpmyadmin时,它会提示消息框填写用户名和密码。 and i have put it the right user and password. 我已经输入了正确的用户名和密码。 however my access has been denied due to wrong username/password? 但是由于用户名/密码错误,我的访问被拒绝了吗?

this is the config.inc.php excerpt 这是config.inc.php的摘录

$cfg['Servers'][$i]['auth_type']     = 'http';    // Authentication method (config, http or cookie based)?
$cfg['Servers'][$i]['user']          = 'albert';      // MySQL user
$cfg['Servers'][$i]['password']      = '1234';          // MySQL password (only needed

Note that i have changed my localhost to 127.0.0.1 even with 127.0.0.1/phpmyadmin is not working too 请注意,即使127.0.0.1/phpmyadmin也无法正常运行,我已将localhost更改为127.0.0.1

$cfg['Servers'][$i]['host']          = '127.0.0.1'; // MySQL hostname or IP address

can anyone please advise what i have done wrong? 谁能告诉我我做错了什么?

Much appreciated Albert 非常感谢阿尔伯特

Since you're storing username and password in your configuration file try changing the auth_type to config : 由于您将用户名和密码存储在配置文件中,请尝试将auth_type更改为config

$cfg['Servers'][$i]['auth_type']     = 'config';

Please reference Auth types documentation for further details, especially the following lines from http section: 请参考Auth类型文档以获取更多详细信息,尤其是http部分中的以下几行:

In config.inc.php do not fill in values for $cfg['Servers'][$i]['user'] and $cfg['Servers'][$i]['password'] 在config.inc.php中,不要填写$cfg['Servers'][$i]['user']$cfg['Servers'][$i]['password']

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM