Skip to content

Instantly share code, notes, and snippets.

@dghadge
Created May 22, 2017 20:42
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 dghadge/7ecd1b2cf350be159e8d217a399cb7c8 to your computer and use it in GitHub Desktop.
Save dghadge/7ecd1b2cf350be159e8d217a399cb7c8 to your computer and use it in GitHub Desktop.
Obfuscating MySQL passwords with Hashicorp Vault - DB staging
$ mysql -uroot -e “CREATE USER ‘vaultadmin’ IDENTIFIED by ‘vaultpass’;” -p
$ mysql -uroot -e “GRANT ALL PRIVILEGES ON *.* TO ‘vaultadmin’@’%’ WITH GRANT OPTION;” -p;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment