Client does not support authentication protocol requested by server
See original GitHub issueI’m submitting a…
- Bug report
- Feature request
- Question
Current behavior
[ERROR] Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
for this DATABASE_URL: mysql://root:@localhost:3306/samsxci
What would cause the above issue ?
( however, no issues with another db url. )
$ mysql --version
mysql Ver 8.0.13 for osx10.12 on x86_64 (Homebrew)
Expected behavior
should connect just fine. Just running the db-migrate check
command
Environment
db-migrate: '^0.11.5',
db-migrate-mysql: '^1.1.10',
mysql2: '^1.6.4',
Additional information:
- Node version: v10.15.0 ( also tried v6.9.1)
- Platform: Mac
Issue Analytics
- State:
- Created 5 years ago
- Comments:6 (1 by maintainers)
Top Results From Across the Web
MySQL 8.0 - Client does not support authentication protocol ...
1) Type MySQL in the windows search bar · 2) Open the MySQL Windows Installer - Community · 3) Look for "MySQL server"...
Read more >B.3.2.4 Client does not support authentication protocol
The Client does not support authentication protocol error also can occur if multiple versions of MySQL are installed but client programs are dynamically...
Read more >MYSQL: Client does not support authentication protocol…
I started working on this article after I solved an issue connecting my express app to my local MySQL server. I got the...
Read more >How to fix "Client does not support authentication protocol ...
How to fix "Client does not support authentication protocol requested by server; consider upgrading MySQL client"?
Read more >Client does not support authentication protocol ... - GitHub
js:242:13 ERROR : Client does not support authentication protocol requested by server; consider upgrading MySQL client error Command failed with ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@danielb2 I was able to work around this with https://stackoverflow.com/a/50547109/122868 which means I updated the
root
account password using the command in the link:According to that link on another answer, MySQL v8 changes the default password hash and I would guess the command above makes it use the old (compatible) hashing function.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.