Skip to content

Instantly share code, notes, and snippets.

@dghadge
Created May 22, 2017 20:42
Show Gist options
  • 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