move to command folders

This commit is contained in:
2019-10-30 00:16:17 -06:00
parent c1a6e79ba8
commit 399a7c25a4
5 changed files with 8 additions and 0 deletions

View File

@ -0,0 +1,10 @@
if [ -z "$1" ] && [ -z "$2" ]; then
read -sp "Old Password: " oldPassword
read -sp "New Password: " newPassword
else
oldPassword="$1"
newPassword="$2"
fi
mysql -uroot -p${oldPassword} -e "SET PASSWORD FOR root@'localhost' = PASSWORD('$newPassword');"