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

Cannot connect to mysql db in localhost #442

Closed
DozenCoder opened this issue Jun 14, 2018 · 2 comments · Fixed by #484
Closed

Cannot connect to mysql db in localhost #442

DozenCoder opened this issue Jun 14, 2018 · 2 comments · Fixed by #484
Assignees
Labels

Comments

@DozenCoder
Copy link

Sqlectron always return

Connection Error
ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client

sqlectron_mysql

I use mysql:

mysql  Ver 8.0.11 for Linux on x86_64 (MySQL Community Server - GPL)

My linux version info:

Distributor ID:	Ubuntu
Description:	Ubuntu 18.04 LTS
Release:	18.04
Codename:	bionic

And Sqlectron work well in my another computer, which is ubuntu 16.04 LTS, mysql 8.0.

@barneydmedia
Copy link
Contributor

I'm not able to reproduce this on the latest docker mysql image, but I've seen this issue before.

The more recent versions of MySQL use different auth plugins by default, and unfortunately it looks like the mysqljs and mysql2 don't support it yet. This isn't something this project can address directly, so we have to wait for fixes to one of those packages.

The good news that I can give is that there are workarounds, mostly configuring MySQL to use the older auth systems by default. I'll leave this issue open until we can bring in a fix but I'll close duplicates.

@barneydmedia
Copy link
Contributor

Minor update on this, there is a PR for the mysql adapter that fixes this problem by adding in new auth compatibility. Once it's completed and merged in we can we can update the package dependency here and release a new build.

mysqljs/mysql#1962

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

Successfully merging a pull request may close this issue.

2 participants