legacy-knowledge-base
公開されました Jul. 2, 2025

Liferay Experience Cloud でデータベース ユーザーを更新する

written-by

István Gergely-Tárnoki

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

問題

  • CREATE USER 'username'@'hostname' IDENTIFIED BY 'password '; によってデータベース にアクセスできるユーザーを作成しました。 コマンドを実行し、それらに特定の権限を付与しました
  • これらのユーザーは、LCP_DATABASE_USER_WHITELIST 環境変数で指定されます
  • これらのユーザーのパスワードを変更し、他のデータを DXP クラウド ユーザーで更新しようとしていますが、 ERROR 1227 (42000): アクセスが拒否されました。この操作には SUPER 権限 (少なくとも 1 つ) が必要です

Environment

  • Liferay Experience Cloud

解決策

  • ユーザーのパスワードを変更できるのは、作成したユーザーのみです
  • これは、LCP_SECRET_DATABASE_USER および LCP_SECRET_DATABASE_PASSWORD 環境変数で資格情報を見つけることができるデフォルトのデータベース ユーザーである必要があります。
did-this-article-resolve-your-issue

legacy-knowledge-base