# PMM2 - Connection check failed

**URL:** <https://forums.percona.com/t/pmm2-connection-check-failed/15965>\
**Category:** Uncategorized\
**Tags:** percona, mysql, pmm\
**Created:** [June 2, 2022, 8:44pm UTC](https://forums.percona.com/t/pmm2-connection-check-failed/15965 "2022-06-02T20:44:35Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Sanjana\_Chandrasheka](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@Sanjana\_Chandrasheka](https://forums.percona.com/u/Sanjana_Chandrasheka)\
**Post date:** [June 3, 2022, 4:57pm UTC](https://forums.percona.com/t/pmm2-connection-check-failed/15965/11 "2022-06-03T16:57:13Z")

</div>

I have tried the following commands, still the same issue,

```auto
pmm-admin add mysql --query-source=perfschema --username=pmm --password=pass --service-name=MYSQL_NODE --socket=/var/run/mysqld/mysqld.sock
Connection check failed: Error 1045: Access denied for user 'pmm'@'localhost' (using password: YES).

```

```auto
pmm-admin add mysql --query-source=perfschema --server-insecure-tls --username=pmm --password=pass --service-name=MYSQL_NODE --socket=/var/run/mysqld/mysqld.sock
Connection check failed: Error 1045: Access denied for user 'pmm'@'localhost' (using password: YES).

```

Seems like a similar issue, but it did’nt help me solve my error.

> [@PMM2 - Client Configuration issue - Connection check failed](https://forums.percona.com/t/pmm2-client-configuration-issue-connection-check-failed/7908):
>
> Hi Team, We are getting the below PMM2 configuration issue while adding the mysql metrics to PMM2 agent. DB Version: Mysql5.7 ERROR: Connection check failed: Error 1045: Access denied for user ‘pmm’@‘192.168.101.06’ (using password: YES). [root@192.168.101.06](mailto:root@192.168.101.06):~# pmm-admin listService type&nbsp; Service name&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Address and port&nbsp; Service ID Agent type&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Status&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; Agent ID&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;pmm\_agent&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Connected&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;/agent\_id/fghghfg…

---

_[View the full topic](https://forums.percona.com/t/pmm2-connection-check-failed/15965)._
