# Easy way to change database user for PMM client?

**URL:** <https://forums.percona.com/t/easy-way-to-change-database-user-for-pmm-client/15701>\
**Category:** PMM 2.x\
**Created:** [May 16, 2022, 9:53am UTC](https://forums.percona.com/t/easy-way-to-change-database-user-for-pmm-client/15701 "2022-05-16T09:53:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Catoman](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@Catoman](https://forums.percona.com/u/Catoman)\
**Post date:** [May 16, 2022, 9:53am UTC](https://forums.percona.com/t/easy-way-to-change-database-user-for-pmm-client/15701/1 "2022-05-16T09:53:29Z")

</div>

Hi,

Is there a way to change the user the PMM client uses to connect to the database with ?  
sudo pmm-admin add mysql --slow-log-rotation=true --retain-slow-logs=0 --user --password

or do i need to remove/add the client ?

---

<div class="post-metadata">

**Author:** ![matthewb](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/matthewb/32/34_2.png) [@matthewb](https://forums.percona.com/u/matthewb)\
**Post date:** [May 16, 2022, 12:06pm UTC](https://forums.percona.com/t/easy-way-to-change-database-user-for-pmm-client/15701/2 "2022-05-16T12:06:26Z")

</div>

Hello @Catoman,  
I believe the username/password info is stored here: /usr/local/percona/pmm2/pmm-agent.yml If you can’t find it, then the simplest solution is to remove/add the client.

---

<div class="post-metadata">

**Author:** ![Catoman](https://avatars.discourse-cdn.com/v4/letter/c/cab0a1/32.png) [@Catoman](https://forums.percona.com/u/Catoman)\
**Post date:** [May 16, 2022, 12:31pm UTC](https://forums.percona.com/t/easy-way-to-change-database-user-for-pmm-client/15701/3 "2022-05-16T12:31:19Z")

</div>

Hi Matthew,

In /usr/local/percona/pmm2/config/pmm-agent.yaml i have only found the username/password for the PMM server itself.  
I’m going with removing/adding the client

Thanks !

BR  
Johan
