Created
August 13, 2022 14:31
-
-
Save danishsatkut/a8735187eb5afd529f0ba6a6ea105bde to your computer and use it in GitHub Desktop.
Set mysql password through a prompt
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
export MYSQL_PWD=$(>&2 read -s -p "Input password (will not echo): "; echo "$REPLY") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment