-
Notifications
You must be signed in to change notification settings - Fork 821
Description
Describe the bug
Newer versions of MySQL default to caching_sha2_password for user authentication. Right now, The Node.js version in use does not support this authentication type.
To Reproduce
- Set up MySQL 8.x as your database engine.
- Attempt to connect with default authentication method.
Expected behavior
The connection succeeds and the database is accessible.
Screenshots
N/A
Server Software (please complete the following information):
- OS: Debian
- Virtualization: VMware
- Network: WAN, no other changes
- Version: 1.1.13
- Node: 18.18.0
Client Device (please complete the following information):
- Device: Desktop
- OS: Windows 11 Pro
- Network: Remote over WAN
- Browser: Any
Remote Device (please complete the following information):
N/A
Additional context
There seems to be a potential easy solution to this issue here: https://stackoverflow.com/questions/50373427/node-js-cant-authenticate-to-mysql-8-0#answer-74458804
I'm not sure if it would actually be that easy to implement in MeshCentral but if it is, this could be a quick fix.
Your config.json file
Will provide if needed but as this is specifically a Node issue, I'm not sure how important it is.
Thank you!