# Add new mysql service from server (agentless)

**URL:** <https://forums.percona.com/t/add-new-mysql-service-from-server-agentless/22972>\
**Category:** PMM 2.x\
**Tags:** pmm, mysql\
**Created:** [June 20, 2023, 5:36pm UTC](https://forums.percona.com/t/add-new-mysql-service-from-server-agentless/22972 "2023-06-20T17:36:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jeromed](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Jeromed](https://forums.percona.com/u/Jeromed)\
**Post date:** [June 20, 2023, 5:36pm UTC](https://forums.percona.com/t/add-new-mysql-service-from-server-agentless/22972/1 "2023-06-20T17:36:42Z")

</div>

Hello there,  
I’ve deployed pmm on Kub with helm.  
I’ve successfuly add a first mysql db with pmm agent.  
Now, I would like to add new mysql db from server (pmm gui) or from API.  
Unfortunately, when I tried to add it by GUI, it’s failed (1/2) with QAN agent in waiting status

Also, documentation on API is very limited, have you some links to share ?  
Thanks in advance.  
J

---

<div class="post-metadata">

**Author:** ![nurlan](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nurlan/32/1523_2.png) [@nurlan](https://forums.percona.com/u/nurlan)\
**Post date:** [June 22, 2023, 2:33pm UTC](https://forums.percona.com/t/add-new-mysql-service-from-server-agentless/22972/2 "2023-06-22T14:33:53Z")

</div>

Hi, @Jeromed what about mysqld\_exporter? does MySQL related dashboards show anything? Can you make sure that performance schema is accessable with credentials passed to PMM?

---

<div class="post-metadata">

**Author:** ![Jeromed](https://avatars.discourse-cdn.com/v4/letter/j/c67d28/32.png) [@Jeromed](https://forums.percona.com/u/Jeromed)\
**Post date:** [June 22, 2023, 6:27pm UTC](https://forums.percona.com/t/add-new-mysql-service-from-server-agentless/22972/3 "2023-06-22T18:27:46Z")

</div>

Hi Nurlan,

My issue has been resolved with answers on my other topic.  
my DB refused external access.

May be interesting to add an example rather than localhost ?

CREATE USER ‘pmm’@‘127.0.0.1’ IDENTIFIED BY ‘pass’ WITH MAX\_USER\_CONNECTIONS 10;  
GRANT SELECT, PROCESS, REPLICATION CLIENT, RELOAD ON _._ TO ‘pmm’@‘localhost’;

Thanks for your help.
