DB FAQ
WhaTapデータベースモニタリングサービスのユーザーからよくある質問を確認してください。
Authentication plugin 'caching_sha2_password' cannot be loadedエラー
Q. エージェントインストール後、DBに接続して_dbx.log_を確認すると、Authentication plugin 'caching_sha2_password' cannot be loaded エラーで接続できません。どうすれば良いでしょうか? |
---|
A. MySQL 8.0を使用する場合、MySql 8.0の基本認証プラグインが、
caching_sha2_password
である場合に発生する 可能性があります。caching_sha2_password
を使用するには、SSLで保護されたセキュリティ接続を使用するか、RSAセキュリティを使用した非暗号化接続を使用する必要があります。これらの問題を最も簡単に解決する方法は、パスワード生成時に、以前のmysql_native_password
方式を使用することです。ALTER USER 'yourusername' IDENTIFIED WITH mysql_native_password BY 'youpassword';
ノート次の文書を参照してください。
- 2.11.4 Changes in MySQL 8.0 - https://dev.mysql.com/doc/refman/8.0/en/upgrading-from-previous-series.html
- 6.4.1.2 Caching SHA-2 Pluggable Authentication - https://dev.mysql.com/doc/refman/8.0/en/caching-sha2-pluggable-authentication.html