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 ファイルもチェックしましたが、次のようなフィールドが 1 つだけありました。
# PASSWORD = (your passwrod)
その行の先頭から # を削除してファイルを保存し、Apache と mysql を再起動しました。アプリを終了してから再度開いたのですが、問題はそこにあり、何も変わりませんでした。
コードをチェックして、新しいパスワードでコードを使用できるかどうかを確認しましたが、それは機能していましたが、唯一の問題は、phpmyadmin にアクセスできなくなったことです。