我已经更改了我的 AMPPS 堆栈的 localhost 用户的密码,现在我无法登录 phpmyadmin 它显示一条粉红色消息:Access Denied...,我尝试恢复所有默认配置,但遇到了同样的问题。
我检查了 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)
我从该行的开头删除了 # 并保存了文件,然后我重新启动了 Apache 和 mysql。我什至关闭了该应用程序,然后重新打开它,但问题就在那里,没有任何改变。
我检查了我的代码,看看我是否可以使用我的代码和新密码并且它正在工作,但唯一的问题是我不能再去 phpmyadmin 了。
