question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Client does not support authentication protocol requested by server

See original GitHub issue

I’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:closed
  • Created 5 years ago
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
cymencommented, Apr 23, 2019

@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:

ALTER USER 'root'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password'

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.

2reactions
stale[bot]commented, Mar 8, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found