将 phpMyAdmin 升级到 4.3.4

Posted

技术标签:

【中文标题】将 phpMyAdmin 升级到 4.3.4【英文标题】:Upgrading phpMyAdmin to 4.3.4 【发布时间】:2015-03-04 11:36:40 【问题描述】:

我正在尝试(最新版本) 我是备份(我的原封不动)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:(无密码),但未登录。

【问题讨论】:

【参考方案1】:

当我将 xampp 上的 phpmyadmin 升级到 4.4.15.3 版本时,我也遇到了类似的问题。

为了解决这个问题,我从 config.sample.inc.php 复制了以下值并移至 config.inc.php

在 /* 高级 phpMyAdmin 功能 */ 行之后

    $cfg['Servers'][$i]['column_info'] = 'pma__column_info';
    $cfg['Servers'][$i]['recent'] = 'pma__recent';
    $cfg['Servers'][$i]['favorite'] = 'pma__favorite';
    $cfg['Servers'][$i]['table_uiprefs'] = 'pma__table_uiprefs';
    $cfg['Servers'][$i]['users'] = 'pma__users';
    $cfg['Servers'][$i]['usergroups'] = 'pma__usergroups';
    $cfg['Servers'][$i]['navigationhiding'] = 'pma__navigationhiding';
    $cfg['Servers'][$i]['savedsearches'] = 'pma__savedsearches';
    $cfg['Servers'][$i]['central_columns'] = 'pma__central_columns';

并重新启动mysql服务器。

【讨论】:

【参考方案2】:

在 phpmyadmin 配置中更改密码之前,您首先需要在 mysql 服务器中更改密码。反过来,你把自己锁在外面。

您需要使用诸如

之类的命令行工具连接到服务器
mysqladmin -u root -p'oldpassword' password newpass

例如

mysqladmin -u root -p'abc' password '123456'

【讨论】:

以上是关于将 phpMyAdmin 升级到 4.3.4的主要内容,如果未能解决你的问题,请参考以下文章

刚升级到 Ubuntu 16.04 但找不到 localhost/phpmyadmin

带有 PhpMyAdmin 5.0.4 的 PHP 问题版本

更新 phpMyAdmin 时出现问题:Composer 依赖项

将 XAMPP 中的 phpMyAdmin 升级到最新版本会产生错误

phpMyAdmin - 错误 您应升级到 MySQL 5.5.0 或更高版本,解决办法。。。

为 wamp 服务器 2.2 更新 phpmyadmin