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

"Client does not support authentication protocol requested by server; consider upgrading MySQL client (Exception)" #56

Open
FredTheHomie opened this issue May 29, 2018 · 7 comments · Fixed by #71

Comments

@FredTheHomie
Copy link

FredTheHomie commented May 29, 2018

I get the below error when I try to run the example test code. I am not sure what is causing this. Any help would be greatly appreciated. Just as a note, I have the latest version of MySql.

screen shot 2018-05-30 at 00 41 04

@faustinoaq
Copy link

/cc @bcardiff 😅

@bcardiff
Copy link
Member

@FredTheHomie specs are run agains 5.6 and 5.7 only. Probably a bit old if you are running latest version.

Would you mind telling the exact version you are using?
If you like binary protocol, or are willing to, feel free to send a PR implementing part of the protocol that might have changed from the above version to yours.

@rdp
Copy link

rdp commented Jul 12, 2018

I ran into this, worked around it by setting a "normal" password for root, FWIW (see comments here: https://dev.mysql.com/doc/refman/5.5/en/old-client.html ). Annnd the comments were all removed. Nice mysql. Anyway fix was ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY '';

@mamantoha
Copy link

I have the same issue with MySQL 8.0.13.

@fernandes
Copy link
Contributor

yeah, it's because the README code initialize without any password for user root, setting a normal user / password, or password for root works flawlessly

fernandes added a commit to fernandes/crystal-mysql that referenced this issue Mar 2, 2019
Add instructions to run the example when get the error `Unhandled exception: Client does not support authentication protocol requested by server; consider upgrading MySQL client (Exception)`

Closes crystal-lang#56
@fernandes
Copy link
Contributor

with mysql there's a problem with packet 254, probably related to #62 , trying to figure out

@rdp
Copy link

rdp commented Dec 29, 2019

I don't think this was exactly fixed (though a work around was mentioned in the README)...consider reopen'ing?

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

Successfully merging a pull request may close this issue.

7 participants