Skip to content

Instantly share code, notes, and snippets.

@pcornier
Last active February 7, 2018 13:57
Show Gist options
  • Save pcornier/56f1700fd7baa5221a62 to your computer and use it in GitHub Desktop.
Save pcornier/56f1700fd7baa5221a62 to your computer and use it in GitHub Desktop.
Drush
- Flush bootstrap cache (hooks)
drush ev "cache_clear_all('*', 'cache_bootstrap', TRUE)"
- change username & password
drush sqlq "UPDATE users SET name='admin' WHERE uid=1"
drush upwd admin --password="admin"
- Violent flush
drush sqlq 'truncate cache'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment