[mysql:metrics] Cannot connect to MySQL: driver: bad connection

Hi all,

When issuing the command:

pmm-admin add mysql --user pmm --password blah

has anyone seen the error:

[linux:metrics] OK, already monitoring this system.
[mysql] 2017/03/09 18:13:28 packets.go:33: unexpected EOF
[mysql] 2017/03/09 18:13:28 packets.go:124: write unix @->/var/run/vividcortex/vc-mysql-metrics_20/ipc: write: broken pipe
[mysql:metrics] Cannot connect to MySQL: driver: bad connection

The pmm mysql user does has the correct privileges.

thx

Hi booger,

is command working fine?
can you add option with correct path?

like

pmm-admin add mysql --user pmm --password blah --socket /var/lib/mysql/mysql.sock

can you show output of command?

Hi Mykola, adding the socket worked.

Thanks