Not the answer you need?
Register and ask your own question!

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

boogerbooger EntrantCurrent User Role Beginner
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

Comments

  • MykolaMykola Percona Percona Staff Role
    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?
  • boogerbooger Entrant Current User Role Beginner
    Hi Mykola, adding the socket worked.

    Thanks
This discussion has been closed.

MySQL, InnoDB, MariaDB and MongoDB are trademarks of their respective owners.
Copyright ©2005 - 2020 Percona LLC. All rights reserved.