0

数回前に、XAMPPでrootMySQLユーザーにパスワードを割り当てました。最近、それを元に戻してパスワードを指定しようとしましたが、機能していません。

mysqld --skip-grant-tablesmysqlコマンドラインを直接使用して、パスワードを空の文字列に設定してみました。動作しているように見えます。rootユーザーはパスワードを持っていませんが、PhpMyAdminにログインすると、データベースは表示されず、「information_schema」データベースと「test」データベースのみが表示されます。[ユーザー]タブを見ると、すべての権限があるようです。

ここに画像の説明を入力してください

この問題を修正する方法について何か提案はありますか?

注:コマンドラインで確認しましたが、すべてのデータベースとテーブルはまだそこにあり、PHPMyAdminでは表示されません。

4

1 に答える 1

1

Try removing the anonymous user who is allowed to connect from any host. My feeling is that that row is taking precidence over the row for root when MySQL validates the login.

If you have removed that Anonymous user and the issue still occurs, try setting a password to root and the host to localhost then connect again.

于 2012-07-06T03:52:50.297 に答える