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

Error 1049 Unknown database '&lock_wait_timeout=2' #303

Closed
wk60807430 opened this issue Jul 17, 2018 · 6 comments
Closed

Error 1049 Unknown database '&lock_wait_timeout=2' #303

wk60807430 opened this issue Jul 17, 2018 · 6 comments
Assignees
Labels

Comments

@wk60807430
Copy link

Host operating system: output of uname -a

localhost

mysqld_exporter version: output of mysqld_exporter --version

0.11.0.linux-amd64

MySQL server version

5.7.22

mysqld_exporter command line flags

./mysqld_exporter --config.my-cnf=".my.cnf"

What did you do that produced an error?

i want to start mysqld_exporter

What did you expect to see?

run

What did you see instead?

ERRO[0012] Error pinging mysqld: Error 1049: Unknown database '&lock_wait_timeout=2' source="exporter.go:119"

cat .my.cnf
[client]
host=localhost
port= 3306
user=root
password=*******

@wk60807430
Copy link
Author

its so wired pls help me

@SuperQ
Copy link
Member

SuperQ commented Jul 17, 2018

Hrm, this is coming from connection string builder. Does your password have a '?' in it?

@wk60807430
Copy link
Author

yes man its have a '?' in it

@SuperQ
Copy link
Member

SuperQ commented Jul 17, 2018

I thought so, that's a bug in the current way we handle building the connection string.

For now, I would recommend creating a separate user for the exporter that does not have a ? in the password.

@SuperQ SuperQ self-assigned this Jul 17, 2018
@SuperQ SuperQ added the bug label Jul 17, 2018
@wk60807430
Copy link
Author

ok,tks

@MahaGamal
Copy link

MahaGamal commented Apr 5, 2021

I hit the same issue with a password have @ after changing it's working fine

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

3 participants