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

管理者ユーザーのパスワードを忘れてしまい、ログインできない

written-by

Sergio Alonso

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

問題

  • 管理ユーザーのパスワードを覚えていないので、インスタンスにログインできない。

解像度

  • DML SQL 文を実行するために、データベースへのアクセスが必要です。
  • 次の手順を実行します:
  • DXP アプリケーションサーバーをシャットダウンします。
  • データベースのバックアップを取る.
  • 次の SQL を実行します
    UPDATE user_
    SET password_ = 'a password', passwordencrypted = false
    WHERE emailaddress = 'target user email';

    COMMIT;
    • カラム passwordencrypted はブール値を指すので、正しい SQL 構文はデータベースによって異なる場合があることをご承知おきください。 例えば、 passwordencrypted = 0のような代替構文があります。 まずデータベースを確認します。
    • パスワードを変更し、暗号化されていないことを表示しています。 このため、次回のログイン時にそのパスワードを使用することができます。
  • DXP アプリケーションサーバーを起動します。
  • ログイン処理に進む。 前の SQL の文章で使用したパスワードを使用します。
    • ログインに成功すると、パスワードはデータベースで暗号化されます。
did-this-article-resolve-your-issue

legacy-knowledge-base