Skip to content

Instantly share code, notes, and snippets.

@danishsatkut
Created August 13, 2022 14:31
Show Gist options
  • Save danishsatkut/a8735187eb5afd529f0ba6a6ea105bde to your computer and use it in GitHub Desktop.
Save danishsatkut/a8735187eb5afd529f0ba6a6ea105bde to your computer and use it in GitHub Desktop.
Set mysql password through a prompt
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