PhpMyAdmin 中的错误 #1045 访问被拒绝
基本上,我通过 CMD
更改了 MySQL
的密码,之后当我尝试访问 phpmyadmin 页面时,它显示错误 #1045 访问被拒绝。
我想知道如何解决这个问题。提前致谢。
Basically I changed the password of MySQL
via CMD
and after that when I tried to visit the phpmyadmin page it shows me Error #1045 Access Denied.
I would like to how to fix this problem. Thanks in advance.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
转到 phpMyAdmin 文件夹(在我的例子中是 C:\wamp\apps\phpmyadmin3.2.0.1)。在文件 config.inc.php 中,将行更改
为
Now the password will be questions on your first access of the phpMyAdmin page
Go to phpMyAdmin folder (in my case it is C:\wamp\apps\phpmyadmin3.2.0.1). In the file config.inc.php change the line
to
Now the password will be asked on your first visit of the phpMyAdmin page
您必须将 C:\wamp\apps\phpmyadmin3.4.5\config.inc.php 中的数据库密码值更改为 MySQL 数据库密码,
例如:-
$cfg['服务器'][$i]['密码'] = 'yourMySQLpassword';
you have to change the database password value in C:\wamp\apps\phpmyadmin3.4.5\config.inc.php into your MySQL database password
ex:-
$cfg['Servers'][$i]['password'] = 'yourMySQLpassword';
只需清除缓存并刷新页面即可。那应该可以帮助你!
Simply, clear your cache and refresh the page. That should help you out!
您可能需要更改 PPHMyAdmin
config-db.php
文件中的密码。You might need to change the password in the PPHMyAdmin
config-db.php
file.