Files
marshal/commands/db-change-root-password.sh
mason 2705f2dc94 added some un-tested scripts
db setup and password change
auto ssh key gen
2019-10-29 02:10:00 -06:00

6 lines
181 B
Bash
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

read -sp "Old Password: " oldPassword
read -sp "New Password: " newPassword
mysql -u root -p "$oldPassword" -e "SET PASSWORD FOR root@'localhost' = PASSWORD($newPassword);"