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

[2019.03] Some fixes for MySQL8 and PHP7.3 #1430

Merged
merged 4 commits into from
May 11, 2019
Merged

[2019.03] Some fixes for MySQL8 and PHP7.3 #1430

merged 4 commits into from
May 11, 2019

Conversation

andrerom
Copy link
Contributor

@andrerom andrerom commented May 3, 2019

This does not imply full MYSQL8 support, but at least it makes it possible to login.

Removes mysql PASSWORD usage away from the initial always used sql for looking for mathcing users.

The deprecated Mysql password hash type will still work, just less efficient.
But as PASSWORD() sql function is removed in Mysql8 it won't work there.
@andrerom andrerom requested review from glye and emodric May 3, 2019 07:13
Copy link
Member

@glye glye left a comment

Choose a reason for hiding this comment

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

It still uses PASSWORD() a little further down: c2500f7#diff-9aabf5ca51952bbd469991c839db4f3eR889
So if you use hash type 4 and upgrade to mysql 8, it will fail afaik.

@andrerom
Copy link
Contributor Author

andrerom commented May 3, 2019

yes, but it at least won't fail for any other hash type like it did before this change
AS in: No hash type at all was able to login due to use of PASSWORD(), as the SQL just error out.

EDIT: Tried to make this more clear in 2ef72e0

@andrerom andrerom added this to the 2019.03 milestone May 3, 2019
Copy link
Member

@glye glye left a comment

Choose a reason for hiding this comment

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

True. So if that's the intention (temporarily) I'm ok with it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants