将 phpMyAdmin 升级到 4.3.4
Upgrading phpMyAdmin to 4.3.4
我正在尝试将 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 密码:(无密码)并且它没有登录。
在 phpmyadmin 配置中更改密码之前,您首先需要在 mysql 服务器中更改密码。反过来,你把自己锁在外面。
您需要使用
等命令行工具连接到服务器
mysqladmin -u root -p'oldpassword' password newpass
例如
mysqladmin -u root -p'abc' password '123456'
当我将 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 服务器。
我正在尝试将 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 密码:(无密码)并且它没有登录。
在 phpmyadmin 配置中更改密码之前,您首先需要在 mysql 服务器中更改密码。反过来,你把自己锁在外面。
您需要使用
等命令行工具连接到服务器mysqladmin -u root -p'oldpassword' password newpass
例如
mysqladmin -u root -p'abc' password '123456'
当我将 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 服务器。