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

Conversation

rycks
Copy link
Contributor

@rycks rycks commented Jan 3, 2023

Here is the fix, sorry for the delay

@@ -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 ?

@eldy eldy added the discussion Further information is requested label Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion Further information is requested
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants