2012-12-13 54 views
0

我剛剛安裝了簡單的php和phpmyadmin沒有連接到mysql服務器。它會拋出一個錯誤 - #1045 - 拒絕用戶'root'@'localhost'的錯誤。easyphp - phpmyadmin沒有連接到mysql服務器

我還沒有做過任何設置或任何類型的更改。我剛剛安裝並嘗試打開phpmyadmin。配置文件看起來像這樣 -

/* Authentication type */ 
$cfg['Servers'][$i]['auth_type'] = 'config'; 
/* Server parameters */ 
$cfg['Servers'][$i]['host'] = '127.0.0.1'; 
$cfg['Servers'][$i]['connect_type'] = 'tcp'; 
$cfg['Servers'][$i]['compress'] = false; 
$cfg['Servers'][$i]['user'] = 'root'; 
$cfg['Servers'][$i]['password'] = ''; 
$cfg['Servers'][$i]['hide_db'] = '(mysql|information_schema|performance_schema|phpmyadmin)'; 

/* Select mysqli if your server has it */ 
$cfg['Servers'][$i]['extension'] = 'mysqli'; 
$cfg['Servers'][$i]['AllowNoPassword'] = false; 

這真的很討厭..有人可以幫助這個。

謝謝

+0

PHP和MySQL在同一臺服務器上嗎? – Neal

+0

我安裝了整個包的easyphp到相同的文件夾..沒有其他變化我做了。所以我想他們應該在同一臺服務器上 – ravi

回答

0

我也有這個問題。下面是我的解決方法:下載並安裝MySQL服務器,停止MySQL服務器服務,並使用MySQL Workbench通過EasyPHP控制已安裝的MySQL服務器。

相關問題