Magento 2 – Forgot Admin Password for Admin Panel magento2passwordpassword-recovery My client forgot admin password. We use magento 2.1 How can change password in database? Thank you. Best Answer Follow this: https://www.siteground.com/kb/how_to_reset_admin_password_in_magento/ UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxxNewPassword', 256), ':xxxxxxxx:1') WHERE username = 'ADMINUSERNAME'; Or you can follow this to create new admin user and when you logged in you can edit the old account How to reset lost admin password in Magento 2? Related SolutionsMagento – Magento 2:- “Forgot your password?” issue from admin side Solution #1 This answer is taken from https://magento.stackexchange.com/a/141612/62052 UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxxNewPassword', 256), ':xxxxxxxx:1') WHERE username = 'admin'; Solution #2 This answer is taken from https://magento.stackexchange.com/a/90933/62052 path_to_magento/bin/magento admin:user:create --admin-user="admin" --admin-password="123123q" --admin-email="admin@example.com" --admin-firstname="Admin" --admin-lastname="Admin" How to Send Forgot Password Link Programmatically in Magento 1.9 You can add this code in index file with a condition like below if($_GET['reset'] == 1 && isset($_GET['reset'])) { .... Your Code for Email ..... } Now run index.php with Like http://YOURSTORE_URL/index.php?reset=1 Related Topic
Best Answer
Follow this: https://www.siteground.com/kb/how_to_reset_admin_password_in_magento/
Or you can follow this to create new admin user and when you logged in you can edit the old account How to reset lost admin password in Magento 2?