Closed Tino-F closed 4 years ago
Hi @Tino-F , please read comments below https://github.com/sidorares/node-mysql2/pull/1021#issuecomment-559341452
tldr - sha256_password
plugin is currently not supported, it is recommended that you upgrade server to use caching_sha2_password
( error message is not great though, any help improving is is welcomed )
@sidorares Thanks for the quick response
Make sure in your .env file you don't have quotations around your actual inputs (on the right side)
Make sure in your .env file you don't have quotations around your actual inputs (on the right side)
I missed the .env
file, solved 👍
I'm trying to connect to my DB, but I get the below error message:
Error: Server requests authentication using unknown plugin sha256_password. See TODO: add plugins doco here on how to configure or author authentication plugins.
The code I'm using is as followed:
"mysql2": "^2.0.2",