legacy-knowledge-base
公開されました Sep. 10, 2025

認証エラーのため、LiferayはMySQLを構成できません

written-by

Anushka Tiwari

How To articles are not official guidelines or officially supported documentation. They are community-contributed content and may not always reflect the latest updates to Liferay DXP. We welcome your feedback to improve How To articles!

While we make every effort to ensure this Knowledge Base is accurate, it may not always reflect the most recent updates or official guidelines.We appreciate your understanding and encourage you to reach out with any feedback or concerns.

legacy-article

learn-legacy-article-disclaimer-text

問題

  • Liferay を使用して MySQL データベースを構成しているときに、認証をロードできないという問題が発生します。
    java.sql.SQLException: Unable to load authentication plugin "caching_sha2_password"

環境

  • Liferay DXP 7.4

解像度

  • この問題を解決するには、以下の MySQL コマンドを実行します。

    ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';
    • 上記の行の「password」を、MySQL への接続に使用する初期パスワードに置き換えます。

追加情報

did-this-article-resolve-your-issue

legacy-knowledge-base