Skip to content

Instantly share code, notes, and snippets.

View andhiirawan's full-sized avatar
🏠
Working from home

Andhi Irawan andhiirawan

🏠
Working from home
View GitHub Profile
@andhiirawan
andhiirawan / customer_reset_password.sql
Created February 14, 2018 14:42 — forked from vpietri/customer_reset_password.sql
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';