Skip to content

Instantly share code, notes, and snippets.

@rslonik
Last active September 11, 2019 12:36
Show Gist options
  • Save rslonik/8167b6e52e73b519e4001590a09d6738 to your computer and use it in GitHub Desktop.
Save rslonik/8167b6e52e73b519e4001590a09d6738 to your computer and use it in GitHub Desktop.
Search and replace bad domains in email list sql
update wp_mailster_subscribers set email = replace(email, '.comm', '.com');
update wp_mailster_subscribers set email = replace(email, '.combr', '.com.br');
update wp_mailster_subscribers set email = replace(email, 'gmail.com.br', 'gmail.com');
update wp_mailster_subscribers set email = replace(email, 'gamil.com', 'gmail.com');
update wp_mailster_subscribers set email = replace(email, 'hotmal.com', 'hotmail.com');
update wp_mailster_subscribers set email = replace(email, 'homail.com', 'hotmail.com');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment