Centos、Google CloudからphpMyAdminにログインできません。

Centos、Google CloudからphpMyAdminにログインできません。

私のMySQLデータベースでは、通常のユーザー(1つのデータベースに対する権限を持つ)とスーパーユーザーの2人のユーザーを作成しました。これらのアカウントでphpMyAdminにログインしようとすると、「MySQLサーバーにログインできません」というエラーが発生します。 (私はリモートで接続している)

<Directory /usr/share/phpMyAdmin/>私のファイルの内部/etc/httpd/conf.d/phpMyAdmin.conf

<Directory /usr/share/phpMyAdmin/>
    AddDefaultCharset UTF-8

   <IfModule mod_authz_core.c>
    # Apache 2.4
   <RequireAny>
      Require all granted
      Require ip 127.0.0.1
      Require ip ::1
   </RequireAny>
   </IfModule>
   <IfModule !mod_authz_core.c>
     # Apache 2.2
     Order Deny,Allow
     Allow from All
     Allow from 127.0.0.1
     Allow from ::1
   </IfModule>
</Directory>

また、config.inc.phpファイルにトップ管理者のユーザーとパスワードを提供しました。私は何を見逃していますか? Googleファイアウォールに対処する必要がありますか? MySQLのファイアウォールルールを設定していません。今構成する必要がありますか?

編集:私もこの答えを試しました。https://serverfault.com/questions/299365/cant-login-to-phpmyadmin

$cfg['blowfish_secret'] = 'myPassword'; /* YOU MUST FILL IN THIS FOR COOKIE AUTH! */

それでも動作しません

SSH端末を介してMySqlにログインできます。しかし、phpMyAdminログインページは利用できません。

ベストアンサー1

回答はこの投稿のコメントにあります。https://www.digitalocean.com/community/questions/cannot-log-in-to-the-mysql-server-without-code-using-phpmyadmin-on-centos7

「一部のアプリケーションで_sha2 _passwordメソッドをキャッシュするのに問題があります。上記の資格情報はデフォルトの資格情報を使用します。」

データベースにログインしたら、次のことを試すことができます。

 ALTER USER myUsername IDENTIFIED WITH mysql_native_password BY '123TheBestPassword';

おすすめ記事