Directly reset the password in the database for development


« Back to overview

Manually set Craft CMS password in the database

If you lost your admin password for Craft CMS, you can enter it for a user in the users database table directly.
For Craft CMS 3.4, you can enter the following password string in the password field.

You can then login with password: 1qaz1qaz


$2y$13$lYYpMHSa1g7HJHSg5iysnexkm91EdpsiRwRzuGA8AO6DPnUM..Cmy
or, directly with a database query:
update users set password='$2y$13$lYYpMHSa1g7HJHSg5iysnexkm91EdpsiRwRzuGA8AO6DPnUM..Cmy' where username='admin';