我更改了我的AMPPS堆棧的localhost用戶的密碼,現在我無法登錄到phpmyadmin它顯示一條粉紅色消息:Access Denied...
,我試過恢復所有默認配置但具有相同的問題。使用AMPP更改Mac上的phpmyadmin密碼,現在無法登錄到phpmyadmin
我檢查config.inc文件,它的內容是:
<?php
/* Servers configuration */
$i = 0;
/* Server: localhost [1] */
$i++;
$cfg['Servers'][$i]['verbose'] = '';
$cfg['Servers'][$i]['host'] = '127.0.0.1';
$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'] = file_get_contents('/Applications/AMPPS/ampps/data/my.conf');
$cfg['Servers'][$i]['hide_db'] = '(information_schema|performance_schema)';
/* End of servers configuration */
$cfg['DefaultLang'] = 'en-utf-8';
$cfg['blowfish_secret'] = '';
$cfg['ServerDefault'] = 1;
$cfg['UploadDir'] = '';
$cfg['SaveDir'] = '';
?>
這是一個涉及到密碼my.conf文件部分:
# The following options will be passed to all MySQL clients
[client]
#password = your_password
port = 3306
socket = {$path}/var/mysql.sock
我已檢查MySQL的。 ini文件也只有一個字段,如:
# PASSWORD = (your passwrod)
我從該行的開頭刪除#並保存t他文件,我重新啓動Apache和MySQL。我甚至退出應用程序,然後重新打開它,但問題在那裏,沒有任何改變。
我檢查了我的代碼,看看我能夠用我的代碼用新密碼和它的工作,但唯一的問題是我不能去到phpMyAdmin了。