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