Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix #258: update mysql password command #270

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion scripts/action_deploy_undeploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1258,7 +1258,7 @@ if [[ "$mode" == "deploy" || "$mode" == "deployall" ]]; then
Q3a="SET PASSWORD FOR '$dbusername'@'localhost' = PASSWORD('$dbpassword'); "
Q3b="SET PASSWORD FOR '$dbusername'@'%' = PASSWORD('$dbpassword'); "
else
Q3="UPDATE mysql.user SET Password=PASSWORD('$dbpassword') WHERE User='$dbusername'; "
Q3="SET PASSWORD FOR '$dbusername' = PASSWORD('$dbpassword')"
Copy link
Member

@eldy eldy Jan 10, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

2 lines after, there is a test to overwrite the old string for mysql to the new one that is hte one you changed.
So you should not need this change.
This line is for mysql and just after we erase Q3 with value for mariadb
What is the result of command dpkg -l | grep mariadb on your deployment server ?

Q3a=""
Q3b=""
# If we use mysql and not mariadb, we set password differently
Expand Down