php - 升级 phpMyAdmin 到 4.3.4

标签 php sql mysqli phpmyadmin config

我正在尝试将 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/

相关文章:

php - CakePHP 是否提供 nonce 支持?

php - 调用数组 laravel 的成员函数 getClientOriginalName()

mysql - 两个日期之间列的正确语法是什么?

mysql - 如何选择日期之间差异最大的列 - MySQL

php - 如何在 mysqli 中转换 mysql_result?

PHP - 多个 MySQL 连接

php - 为什么在使用 WordPress 将 Bootstrap 类导入到我的functions.php 文件中后, Bootstrap 类不起作用?

php - 如何在php中解析一个包含1500万行数据的csv文件

mysql - 试图让这个 SQL 查询在 phpmyadmin mysql 上运行,但它不起作用

mysql - fatal error : Call to undefined function mysqli_init()