I am using Magento on Google Cloud Platform. The admin account has been disabled. I am not able to use the application. Please could anybody help me unlock and change the password of the admin
Hi @isbm,
Run below command from your root directory using SSH.
php bin/magento admin:user:unlock ADMINUSERNAME
(or)
Run below query from your database to update admin account password.
UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxxNewPassword', 256), ':xxxxxxxx:1') WHERE username = 'admin';
Thank You!
Can you tell me where to run this command. I found GCP Shell is this where I can run this command if yes how
hey,
in GCP ssh shell you need to sudo as magento server user and go to the magento folder to run this command.
I am sorry for too many questions.
I am inside the SHELL logged in under the project what is the command to find the Magento folder