2015-01-06 44 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服務器。