1
Magento Database를 보유하고 있으며, MySQL Query를 사용하여 Magento Database에서 고객의 사용자 이름과 암호를 얻고 싶습니다.Magento DB에서 고객의 사용자 이름과 암호를 가져 오는 방법
Magento Database를 보유하고 있으며, MySQL Query를 사용하여 Magento Database에서 고객의 사용자 이름과 암호를 얻고 싶습니다.Magento DB에서 고객의 사용자 이름과 암호를 가져 오는 방법
고객은 이메일과 비밀번호로 로그인 않으며 모든 고객이 이메일을 원하는 경우 암호는 다음이 쿼리는 도움이 될 수 있습니다
SELECT c.entity_id,c.email,
(
SELECT fn.value
FROM customer_entity_varchar fn
WHERE c.entity_id = fn.entity_id AND
fn.attribute_id = 12) AS password_hash,
(
SELECT fn.value
FROM customer_address_entity_varchar fn
WHERE ca.entity_id = fn.entity_id AND
fn.attribute_id = 30) AS cep
FROM customer_entity AS c
LEFT JOIN customer_address_entity AS ca ON c.entity_id = ca.parent_id
LEFT JOIN customer_address_entity_text AS cat ON cat.entity_id = ca.entity_id
GROUP BY entity_id