用户'root'@'localhost'的访问被拒绝(使用密码:NO) [英] Access denied for user 'root'@'localhost' (using password: NO)
本文介绍了用户'root'@'localhost'的访问被拒绝(使用密码:NO)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我已经为我的网站做了一个登录页面,但是当我测试来自"localhost"的登录时,我得到以下消息:
拒绝访问用户"root" @"localhost"(使用密码:NO)".
谁能帮我解决这个错误.
为了您的信息,我通过更改将我的密码添加到了文件"config.inc.php"中:
i have made a login page for my website but when i test the login from the ''localhost'' i get the message below:
"Access denied for user ''root''@''localhost'' (using password: NO)".
can anyone help me with this error.
for your information, i have added my password to the file ''config.inc.php'' by changing:
$cfg['Servers'][$i]['password'] = '';
TO
TO
$cfg['Servers'][$i]['password'] = 'password';
谢谢您的帮助
Hamza
Thank You for any help
Hamza
推荐答案
cfg [' 服务器']
i] [' 密码'] = ' ';
i]['password'] = '';
TO
TO
cfg [' 服务器']
这篇关于用户'root'@'localhost'的访问被拒绝(使用密码:NO)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文