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

Connection fails when the password contains % or ? characters #458

Open
erolatreston opened this issue Mar 20, 2020 · 1 comment
Open

Connection fails when the password contains % or ? characters #458

erolatreston opened this issue Mar 20, 2020 · 1 comment

Comments

@erolatreston
Copy link

MySQL is created using the mysql_native_password plugin.
If the password contains % or ? characters, authentication seems to fail.

Host operating system: output of uname -a

Linux foo.example.com 3.10.0-1062.12.1.el7.x86_64 #1 SMP Tue Feb 4 23:02:59 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux

mysqld_exporter version: output of mysqld_exporter --version

mysqld_exporter, version 0.11.0 (branch: HEAD, revision: 5d71796)
build user: root@3d3ff666b0e4
build date: 20180629-15:00:35
go version: go1.10.3

MySQL server version

5.7.29

mysqld_exporter command line flags

Environment=DATA_SOURCE_NAME=exp:Abc123!#%^&*()_+[;.?|@(localhost:3306)/

What did you do that produced an error?

change password to contain % or ?

What did you expect to see?

connection established

What did you see instead?

connection failed

@gnufree
Copy link

gnufree commented Apr 2, 2020

Your password setting is too complex. You can consider removing some special symbols.

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