Skip to content

Instantly share code, notes, and snippets.

@jverweijL
Last active November 18, 2021 10:06
Show Gist options
  • Save jverweijL/936234613cf4c0505a23ec5353e2a1fb to your computer and use it in GitHub Desktop.
Save jverweijL/936234613cf4c0505a23ec5353e2a1fb to your computer and use it in GitHub Desktop.
reset admin password
UPDATE User_
SET password_ = 'temporarypassword',passwordEncrypted = 0, passwordReset = 1
WHERE emailAddress = 'test@liferay.com';
# Restart the Liferay Services. This will allow you to log in once with your own set password. Liferay will ask you to set a new password and that’s all. You have succesfully regained control! Your password will automatically become encrypted again in the database, so no need to worry about that.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment