我正在尝试将 phpMyAdmin 升级到 4.3.4(最新版本)
我备份了(我未受影响的)config.inc.php
文件并将其放回去
在 phpMyAdmin 目录中。
因为我没有在 root 上使用密码,所以我收到了 (2) 条错误消息。
1.
The phpMyAdmin configuration storage is not completely configured, some extended features have been deactivated. Find out why.
Or alternately go to 'Operations' tab of any database to set it up there
2.
Your configuration file contains settings (root with no password) that correspond to the default MySQL privileged account. Your MySQL server is running with this default, is open to intrusion, and you really should fix this security hole by setting a password for user 'root'.
因此,我试图纠正它们,并从最简单的一个开始,并在我的 config.inc.php 文件中输入密码...猜猜出现了什么新错误(访问被拒绝)。
错误
Cannot connect: invalid settings.
phpMyAdmin tried to connect to the MySQL server, and the server rejected the connection. You should check the host, username and password in your configuration and make sure that they correspond to the information given by the administrator of the MySQL server.
如果我完全删除config.inc.php
文件,我会看到一个登录屏幕,所以我尝试使用默认用户:root pass:(无密码)并且它没有登录.
最佳答案
在 phpmyadmin 配置中更改密码之前,您首先需要更改 mysql 服务器中的密码。反过来说,你会把自己锁在门外。
您需要使用命令行工具连接到服务器,例如
mysqladmin -u root -p'oldpassword' password newpass
例如
mysqladmin -u root -p'abc' password '123456'
关于php - 升级 phpMyAdmin 到 4.3.4,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27804822/