跳到主要內容

發表文章

目前顯示的是 10月, 2016的文章

phpMyAdmin 使用設定檔案中定義的控制使用者連線失敗。

MySQL 回應: 無法連線: 設定錯誤. 使用設定檔案中定義的控制使用者連線失敗。  phpMyAdmin 嘗試連線到 MySQL 伺服器,但伺服器拒絕連線。您應該檢查設定檔案中的主機、帳號和密碼,並確認這些資訊與 MySQL 伺服器管理員所給出的資訊一致。 出現這樣的錯誤 一般來說是 MySQL 設定檔內 可能設置密碼或修改port 而phpMyAdmin 設定卻沒有做相應修改 此時先檢查\mysql\bin\my.ini 檔案內設定 # password       = your_password port            = 3308 如有設置密碼 或更改port 作相應設置 修改 \phpMyAdmin \config.inc.php $cfg['Servers'][$i]['auth_type'] = 'config'; $cfg['Servers'][$i]['user'] = 'root';   //設置使用者名稱 $cfg['Servers'][$i]['password'] = '';  //設置修改的密碼 $cfg['Servers'][$i]['extension'] = 'mysqli'; $cfg['Servers'][$i]['AllowNoPassword'] = true; $cfg['Lang'] = ''; 如果你修改過 port  再$cfg['Servers'][$i]['host'] = 'localhost'; 下面加入一行 $cfg['Servers'][$i]['port']='3308'; 數字請對應你\mysql\bin\my.ini 檔案內設定