且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

错误 #1045 - 无法登录 MySQL 服务器 ->phpmyadmin

更新时间:2021-08-04 21:24:26

点击帖子中提到的链接后,您还需要做两件事:

You need to do two additional things after following the link that you have mentioned in your post:

必须在 phpmyadmin 的 config.inc.php

One have to map the changed login cridentials in phpmyadmin's config.inc.php

其次,你需要重启你的 web 和 mysql 服务器..

and second, you need to restart your web and mysql servers..

php 版本不是这里的问题..你需要去 phpmyadmin 安装目录并找到文件 config.inc.php 并在该文件中放入你当前的 mysql密码在行

php version is not the issue here..you need to go to phpmyadmin installation directory and find file config.inc.php and in that file put your current mysql password at line

$cfg['Servers'][$i]['user'] = 'root'; //mysql username here
$cfg['Servers'][$i]['password'] = 'password'; //mysql password here