php 错误 #1045 在 PhpMyAdmin 中拒绝访问
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/5287147/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Error #1045 Access Denied in PhpMyAdmin
提问by Shabir Gilkar
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.
基本上我更改了MySQL
via的密码,CMD
之后当我尝试访问phpmyadmin页面时,它显示错误#1045 Access Denied。
I would like to how to fix this problem. Thanks in advance.
我想知道如何解决这个问题。提前致谢。
回答by Dmitro
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
转到 phpMyAdmin 文件夹(在我的例子中是 C:\wamp\apps\phpmyadmin3.2.0.1)。在文件 config.inc.php 中更改行
$cfg['Servers'][$i]['auth_type'] = 'config'
to
到
$cfg['Servers'][$i]['auth_type'] = 'cookie'
Now the password will be asked on your first visit of the phpMyAdmin page
现在,您第一次访问 phpMyAdmin 页面时将询问密码
回答by Dinidu Hewage
you have to change the database password value in C:\wamp\apps\phpmyadmin3.4.5\config.inc.php into your MySQL database password
您必须将 C:\wamp\apps\phpmyadmin3.4.5\config.inc.php 中的数据库密码值更改为您的 MySQL 数据库密码
ex:- $cfg['Servers'][$i]['password'] = 'yourMySQLpassword';
例如:- $cfg['Servers'][$i]['password'] = 'yourMySQLpassword';
回答by CD_mmp
Simply, clear your cache and refresh the page. That should help you out!
只需清除缓存并刷新页面即可。那应该能帮到你!
回答by Ewan Heming
You might need to change the password in the PPHMyAdmin config-db.php
file.
您可能需要更改 PPHMyAdminconfig-db.php
文件中的密码。