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 incorrect error connecting to v4.1.1+ server (+ minor doc update) #1

Merged
merged 3 commits into from
Oct 26, 2012

Conversation

Abscissa
Copy link

Attempting to connect to a v5.0 MySQL server (and possibly others) resulted in an oddly contradictory "Server doesn't support protocol v4.1 passwords" error.

Turns out, this was a bug based on a misinterpretation of the protocol spec (or perhaps an outdated version of the spec). Specifically, the low bit of the server capabilities does not refer to the new 4.1+ style passwords (as was previously thought), but rather a later version of the old-style passwords (rather conflusingly). The flag itself was deprecated in v4.1.1 and, according top the spec, should be assumed to be ON. See:

I also snuck in a few minor documentation updates:

  • Fixed a few broken links to the protocol spec.
  • Removed the blurb about "only compiled and tested on Ubuntu with D2.055" since that's no longer true. (I've been using it on Windows with DMD 2.059 and 2.060.)
  • Added note that MySQL servers prior to v4.1.1 are not supported (which was already true anyway, the docs just didn't say so).

@s-ludwig
Copy link

Thanks, looks like I would have had a hard time fixing it, as it surprisingly works on my MySQL 5.5 test server.

s-ludwig added a commit that referenced this pull request Oct 26, 2012
Fix incorrect error connecting to v4.1.1+ server (+ minor doc update)
@s-ludwig s-ludwig merged commit 27d02bf into mysql-d:master Oct 26, 2012
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 this pull request may close these issues.

2 participants