-
Notifications
You must be signed in to change notification settings - Fork 2.3k
mysql5.7 unknown auth plugin #815
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
Comments
The following section is also for a good reason in the issue template: ### Configuration
*Driver version (or git SHA):*
*Go version:* run `go version` in your console
*Server version:* E.g. MySQL 5.6, MariaDB 10.0.20
*Server OS:* E.g. Debian 8.1 (Jessie), Windows 10 |
My guess is that your master branch is not the latest version. Please check the specific version with |
hello,I also have this problem. Do you have resolved? |
no |
Does this branch fix the issue for you? https://github.com/go-sql-driver/mysql/tree/empty_auth |
In any case, it would be great if you could insert a simple Lines 157 to 167 in d523deb
Lines 469 to 474 in d523deb
|
@gocuntian did you resolve the problem? |
I have the same question, my question is my server send the init packet without the way of auth |
I got the same warning when connecting to MySQL 5.1.
The branch https://github.com/go-sql-driver/mysql/tree/empty_auth fixed it. Do you have a plan to merge the branch? @julienschmidt |
I have the same problem. I could provide more info if you need it. Or do you think that is another problem and I should create a new issue? |
I just want to highlight that there seem to be two problems here with very similar symptoms. The fix in #835 appears to fix the case where there's an empty auth plugin name, but it doesn't solve the issue @mbertschler and I had with the Maybe that's a different issue, but I suspect a wider fix is required than that proposed in #835. |
@kwoodhouse93 Can you send us a packet log, e.g. as described here: #815 (comment) (preferably using the |
And also try adding |
Using
That repeated 12 times before it stopped retrying, each with a slightly different address. Regarding my DSN, I'm using
(Note, it didn't repeat this time. It just failed once and returned an error to my client app) Looking at the output produced by |
I upgraded and got this error:
I'm using the proxy dialer with DialCfg from github.com/GoogleCloudPlatform/cloudsql-proxy/proxy/dialers/mysql, and in my case the simple fix was to add AllowNativePasswords in the config struct.
|
This error was solved in my case by specifying |
AllowNativePassword is true by default. https://godoc.org/github.com/go-sql-driver/mysql#Config
|
Thanks. I was creating a |
this worked in my case |
Issue description
Tell us what should happen and what happens instead
mysql5.7 unknown auth plugin
Example code
Error log
Configuration
Driver version (or git SHA): origin/master
Go version:go1.10.2 darwin/amd64
Server version:MySQL 5.7
Server OS: macOS 10.13.4 (17E202)
The text was updated successfully, but these errors were encountered: