# \[Metricbeat\] Mysql user permission

**URL:** <https://discuss.elastic.co/t/metricbeat-mysql-user-permission/297018>\
**Category:** Beats\
**Created:** [February 11, 2022, 6:47pm UTC](https://discuss.elastic.co/t/metricbeat-mysql-user-permission/297018 "2022-02-11T18:47:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rossana](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/rossana/32/94216_2.png) [@Rossana](https://discuss.elastic.co/u/Rossana)\
**Post date:** [February 11, 2022, 6:47pm UTC](https://discuss.elastic.co/t/metricbeat-mysql-user-permission/297018/1 "2022-02-11T18:47:24Z")

</div>

Hi,

I want to know which are the user privilege nedded for each metricset of mysql module:

- Performance
- Query
- Status

The documentation talk about only the user root.

Regards,

---

<div class="post-metadata">

**Author:** ![ylasri](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/ylasri/32/86120_2.png) [@ylasri](https://discuss.elastic.co/u/ylasri)\
**Post date:** [February 14, 2022, 3:22pm UTC](https://discuss.elastic.co/t/metricbeat-mysql-user-permission/297018/2 "2022-02-14T15:22:32Z")

</div>

Hope this can help

> [@MySQL Required Privileges?](https://discuss.elastic.co/t/mysql-required-privileges/118530):
>
> I'm new to elastic and metricbeat, but I'd like to set up the mysql module with a user account that has the least required privileges. The example shows "root@" and the question about privileges was never answered in this earlier thread… Stuck with MySQL permission Does anyone know the incantation to create a mysql user with the correct privileges for the metricbeat mysql module to collect stats?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [March 14, 2022, 3:22pm UTC](https://discuss.elastic.co/t/metricbeat-mysql-user-permission/297018/3 "2022-03-14T15:22:40Z")

</div>

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.
