我在opensuse13.2中安裝了xampp。它安裝得很整齊。但在訪問http://localhost/phpmyadmin/頁面時出現以下錯誤。我在這裏嘗試了幾個答案,但沒有一個幫助,例如將密碼設置爲「」或「」。嘗試通過'http'而不是'config'進行身份驗證。但沒有人在工作。訪問http:// localhost/phpmyadmin /頁面時拒絕訪問
MySQL說:文檔
無法連接:無效設置。 您的配置中定義的控制用戶連接失敗。 phpMyAdmin嘗試連接到MySQL服務器,並且服務器拒絕了連接。您應該檢查配置中的主機,用戶名和密碼,並確保它們與MySQL服務器管理員提供的信息相對應。
以下是phpmyadmin/config.inc.php文件的內容。
/**
* Servers configuration
*/
$i = 0;
/**
* First server
*/
$i++;
/* Authentication type */
$cfg['Servers'][$i]['auth_type'] = 'config';
$cfg['Servers'][$i]['user'] = 'root';
$cfg['Servers'][$i]['password'] = 'root';
/* Server parameters */
//$cfg['Servers'][$i]['host'] = 'localhost';
//$cfg['Servers'][$i]['connect_type'] = 'tcp';
$cfg['Servers'][$i]['compress'] = false;
$cfg['Servers'][$i]['AllowNoPassword'] = true;
/**
* phpMyAdmin configuration storage settings.
*/
/* User used to manipulate with storage */
// $cfg['Servers'][$i]['controlhost'] = '';
// $cfg['Servers'][$i]['controlport'] = '';
$cfg['Servers'][$i]['controluser'] = 'root';
$cfg['Servers'][$i]['controlpass'] = 'root';
/* Storage database and tables */
$cfg['Servers'][$i]['pmadb'] = 'phpmyadmin';
我改變了你寫的行,但它不工作。 – impossible
謝謝,它的工作。我需要重新啓動。 – impossible