當我嘗試登錄爲username:root
和password:''
時,無法登錄到PhpMyAdmin。當我輸入admin
作爲用戶名並將密碼字段留空時,我可以登錄到面板,但當我嘗試創建數據庫時,No Privilege
顯示爲this。來自xampp服務器的PhpMyAdmin'沒有權限'
我檢查在config.inc.php
文件中的內容是這樣的:
/* Authentication type and info */
$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'] = '';
請幫我解決這個問題。
您有一位名爲admin的用戶,該用戶沒有密碼,並且該用戶沒有指定的特權。你也有一個密碼的root帳戶,所以如果你嘗試登錄到phpmyadmin沒有它會失敗。什麼是問題?你有沒有清楚,phpMyAdmin是一個工具來訪問MySQL數據庫服務器,而不是服務器本身? –
我需要知道用戶名'root'的密碼。我已經檢查過'config.inc.php',內容就像上面那樣。但仍然無法使用上述憑證登錄到「PhpMyAdmin」。 – Ramya
您將永遠不會在phpMyAdmin的config.inc.php文件中找到mysql的root帳戶密碼。我告訴你,你看錯了地方。爲了讓phpMyAdmin配置正常工作,只需在這裏放入'$ cfg ['Servers'] [$ i] ['password'] ='';'mysql root帳戶的密碼。即使我不鼓勵您以純文本格式存儲該密碼。 –