2015-01-06 45 views
2

我试图到phpMyAdmin升级到4.3.4(最新版本) 而我的备份(我不变)config.inc.php文件,并把它放在phpMyAdmin的目录背 。升级phpMyAdmin来4.3.4

因为我没有在根上使用密码,所以我收到了(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文件把密码......你猜怎么着新错误(ACCESS DENIED)。

错误

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文件我得到一个登录屏幕,所以我试图使用默认的用户:根通:(无密码),它不是在登录

回答

2

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

您需要使用命令行工具来连接到服务器一样

mysqladmin -u root -p'oldpassword' password newpass 

例如

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

我也得到了类似的问题,当我在我的XAMPP升级phpMyAdmin来4.4.15.3版本。

screenshot

Errors screenshot

为了解决这个问题,我从config.sample.inc.php复制下面的值并移动到的config.inc.php

后/ *先进的phpMyAdmin的特点*/line

$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服务器。