DEV Community

Bryan
Bryan

Posted on • Originally published at devlogbook.com

1

Docker, NodeJS, and MySQL 8

Seen this error when using Docker for NodeJS and MySQL 8?

Error: ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client
Enter fullscreen mode Exit fullscreen mode

It is most likely the wrong package is being used.

Note

Make sure the MySQL server is fully running before trying to connect, otherwise an error like below

Error: connect ECONNREFUSED 172.17.0.1:3306
Enter fullscreen mode Exit fullscreen mode

Top comments (0)

Billboard image

Deploy and scale your apps on AWS and GCP with a world class developer experience

Coherence makes it easy to set up and maintain cloud infrastructure. Harness the extensibility, compliance and cost efficiency of the cloud.

Learn more

👋 Kindness is contagious

Please leave a ❤️ or a friendly comment on this post if you found it helpful!

Okay