-
-
Notifications
You must be signed in to change notification settings - Fork 619
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" #744
Comments
can't reproduce, I'm using maridb server from docker:
|
@BamItsPixel you are most likely suffering from bugged socket auth (node-mysql bug #1507) Try adding this to your code (where
|
thanks @Alexander-- for hint Yes, as suggested by mysqljs/mysql#1507 (comment) the error might be visible when CLIENT_PLUGIN_AUTH capability flag is not set and we only set it when there is |
This occurs for me when using the latest mysql docker image, MySQL version 8.x. This is kind of a deal breaker right? I mean you can't connect to the latest MySQL server. Shouldn't this issue get the highest priortiy? See: mysqljs/mysql#2002 |
yes, it's high priority @dschnare and I already have almost ready for PR code to fix this. In the meantime solutions like mysqljs/mysql#1962 (comment) should work |
I appreciate your work on this @sidorares (and others). Sorry for coming across as an ass. |
no problems @dschnare , happy to have you review pr so you familiar with code involved ( if you want ) |
@sidorares I promised myself I was going to submit a PR to fix the MySQL 8.0 issues similar to mysqljs/mysql#1962, but still haven't found time to do it. Since you are already working on it, feel free to let me know if you need any help or additional review. |
Thanks @ruiquelhas , I definitely want you to have a look at PR when it's ready ( and thanks for your work on mysqljs/mysql, my code is very much based on your ). Hope it'll be much smaller, I'm trying to make it use generic auth plugin system in the client ( so that all auth types are plugins, just some of them are pre-included - api similar to #560 (comment) ) |
just update your mysql-connector-java to latest all works fine |
Any news here? Thanks! |
This is most common problem with Node.js mysql modules. I tried other mysql modules but unlucky attempts.. |
The solution given on here (code snippet above) worked for me. Try it out! |
Hi, |
This is a fresh install of MariaDB with an imported SQL dump and I ran the query
SET PASSWORD FOR 'root'@'localhost' = PASSWORD('password')
.The text was updated successfully, but these errors were encountered: