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

You are viewing an article from our legacy "FastTrack" publication program, made available for informational purposes. Articles in this program were published without a requirement for independent editing or verification and are provided"as is" without guarantee.

Before using any information from this article, independently verify its suitability for your situation and project.

問題

  • 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