2011-06-03 130 views
0

嗨有一個工作phpmyadmin停止工作,當我安裝了Windows 32位的新版本wamp 2。安裝wamp服務器2後phpmyadmin停止工作

現在我有mysqlBuddy出現在我的localhost主頁,它mysqlBuddy的作品,但是當我點擊phpmyadmin它不起作用。我得到的錯誤是訪問被拒絕。請閱讀下面的錯誤。

> Error 
>  
>   MySQL said: Documentation 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文件是phpMyAdmin的文件夾下才能看到的配置設置,他們都OK

/* Server: localhost [1] */ 
$i++; 
$cfg['Servers'][$i]['verbose'] = 'localhost'; 
$cfg['Servers'][$i]['host'] = 'localhost'; 
$cfg['Servers'][$i]['port'] = ''; 
$cfg['Servers'][$i]['socket'] = ''; 
$cfg['Servers'][$i]['connect_type'] = 'tcp'; 
$cfg['Servers'][$i]['extension'] = 'mysqli'; 
$cfg['Servers'][$i]['auth_type'] = 'config'; 
$cfg['Servers'][$i]['user'] = 'root'; 
$cfg['Servers'][$i]['password'] = ''; 
$cfg['Servers'][$i]['AllowNoPassword'] = true; 

我不知道是怎麼回事,我可以解決這個問題。 ?

+0

$ cfg ['Servers'] [$ i] ['extension'] ='mysqli';是不是你用mysql來代替? – Ibu 2011-06-03 06:50:00

回答

1

只是爲了涵蓋所有的基礎 - 您是否嘗試在更改PHPMyAdmin的配置後重新啓動WAMP服務器?

如果仍然無法連接,請嘗試按照說明here重置您的MySQL根密碼。