doug48
10/18/2016 - 7:05 AM

shell script change password magento 2

shell script change password magento 2

#!/usr/bin/env bash
#
# change the numbers to a random string in each case
# UPDATE db_local.admin_user SET password = CONCAT(SHA2('12345678Kouch-123', 256), ':12345678:1') WHERE username = 's48admin';
mysql -uUSER -pPASS -hHOST -e "UPDATE party_local.admin_user SET password = CONCAT(SHA2('1234567password', 256), ':12345678:1') WHERE username = 's48admin';"