Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andhiirawan/47297c3cbd2af8f8910f109ec31e003c to your computer and use it in GitHub Desktop.
Save andhiirawan/47297c3cbd2af8f8910f109ec31e003c to your computer and use it in GitHub Desktop.
Magento: Reset all customer password
UPDATE `customer_entity_varchar` caev
JOIN `customer_entity` ce ON ce.entity_id=caev.entity_id
JOIN `eav_attribute` ea ON ea.entity_type_id=ce.entity_type_id AND caev.attribute_id=ea.attribute_id
SET caev.value=MD5('admin123')
WHERE ea.attribute_code='password_hash';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment