Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Trouble setting up MySQL monitoring #2939

Closed
2 tasks done
aimrabbit004 opened this issue Mar 17, 2023 · 1 comment
Closed
2 tasks done

Trouble setting up MySQL monitoring #2939

aimrabbit004 opened this issue Mar 17, 2023 · 1 comment
Labels

Comments

@aimrabbit004
Copy link

⚠️ Please verify that this bug has NOT been raised before.

  • I checked and didn't find similar issue

🛡️ Security Policy

📝 Describe your problem

I added a MySQL monitor by using the given syntax like mysql://user:password@host:port/database but I get this error message:
Server requests authentication using unknown plugin . See TODO: add plugins doco here on how to configure or author authentication plugins.

MySQL Server Version: mysql Ver 14.14 Distrib 5.1.73

What should I do to get it working?

Thanks for helping.

🐻 Uptime-Kuma Version

1.21.0-beta1

💻 Operating System and Arch

Ubuntu 20.04 x64

🌐 Browser

Mozilla Firefox 110.0.1

🐋 Docker Version

No response

🟩 NodeJS Version

14.21.3

@aimrabbit004
Copy link
Author

aimrabbit004 commented Mar 20, 2023

Okay found the solution.
sidorares/node-mysql2#1021 (comment)

ALTER USER 'user'@'localhost' IDENTIFIED WITH mysql_native_password BY 'password';

Change the password to a long hash and it will connect.
For generating the hash I used: https://www.browserling.com/tools/mysql-password

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant