Created
May 22, 2017 20:42
-
-
Save dghadge/7ecd1b2cf350be159e8d217a399cb7c8 to your computer and use it in GitHub Desktop.
Obfuscating MySQL passwords with Hashicorp Vault - DB staging
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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