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

unsupported authentication method: mysql_clear_password #2001

Open
michael1593 opened this issue Apr 23, 2023 · 4 comments
Open

unsupported authentication method: mysql_clear_password #2001

michael1593 opened this issue Apr 23, 2023 · 4 comments

Comments

@michael1593
Copy link

error message:
image

when i try to connected mysql then alert exception.
mysql version: 8.0.22
maxwell version: 1.40.0

The config.properties part is as follows:

ssl=PREFERRED
jdbc_options=useSSL=true&requireSSL=false&verifyServerCertificate=false&serverTimezone=Asia/Shanghai&characterEncoding=utf-8
output_ddl=true
bootstrapper=sync
output_commit_info=false
ignore_producer_error=false
metrics_type=http
http_diagnostic=true

when i use dbeaver do it like this, It is normal for me to use dbeaver to connect to mysql, only use ssl is enabled, and the certificate is not verified
image

@osheroff
Copy link
Collaborator

paste your mysql config, please? also the row in mysql.user for whoever you're logging in as.

@michael1593
Copy link
Author

michael1593 commented May 5, 2023

The plugin in mysql.user is authentication_pam, and I use this user as a config to connect to mysql and it will prompt unsupported authentication method: mysql_clear_password, I use plugins for mysql_native_password no problem, do you not support plugins for authentication_pam users.

@michael1593
Copy link
Author

michael1593 commented May 5, 2023

image

I see that only mysql_native_password and caching_sha2_password are supported in the Class Authenticator, can you support mysql_clear_password in the future or maybe you already support it, but I'm using it in the wrong way?

@osheroff
Copy link
Collaborator

Ok i looked into this a little, and yes, we don't support clear_password based auth. PRs welcome though

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

No branches or pull requests

2 participants