Skip to content

MySQL 8.x Connection Issue #5419

@PetieM

Description

@PetieM

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

  1. Set up MySQL 8.x as your database engine.
  2. 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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions