# Mysqld\_exporter to connect to the DB using exporter user with mTLS and not plain-text password

**URL:** <https://forums.percona.com/t/mysqld-exporter-to-connect-to-the-db-using-exporter-user-with-mtls-and-not-plain-text-password/26538>\
**Category:** PMM 2.x\
**Created:** [November 14, 2023, 10:36pm UTC](https://forums.percona.com/t/mysqld-exporter-to-connect-to-the-db-using-exporter-user-with-mtls-and-not-plain-text-password/26538 "2023-11-14T22:36:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![raj8885](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/raj8885/32/17734_2.png) [@raj8885](https://forums.percona.com/u/raj8885)\
**Post date:** [November 14, 2023, 10:36pm UTC](https://forums.percona.com/t/mysqld-exporter-to-connect-to-the-db-using-exporter-user-with-mtls-and-not-plain-text-password/26538/1 "2023-11-14T22:36:19Z")

</div>

## Description:

I need to convert the mysqld\_exporter to connect to the DB using exporter user with mTLS but I do not see any available options in the web-config.yml to pass the certs location to authenticate with the exporter user subject string and create a connection. Has anyone achieved the same using the latest version of Pecona mysqld\_exporter ?

## Steps to Reproduce:

[Step-by-step instructions on how to reproduce the issue, including any specific settings or configurations]

## Version:

[Insert the version number of the software]

## Logs:

[If applicable, include any relevant log files or error messages]

## Expected Result:

[What the user expected to see or happen before the issue occurred]

## Actual Result:

[What actually happened when the user encountered the issue]

## Additional Information:

[Include any additional information that could be helpful to diagnose the issue, such as browser or device information]

---

<div class="post-metadata">

**Author:** ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)\
**Post date:** [November 15, 2023, 5:33pm UTC](https://forums.percona.com/t/mysqld-exporter-to-connect-to-the-db-using-exporter-user-with-mtls-and-not-plain-text-password/26538/2 "2023-11-15T17:33:17Z")

</div>

Hi, I haven’t tested this myself but here is an example of the format you should be using:

> <https://github.com/prometheus/exporter-toolkit/blob/master/docs/web-configuration.md>

Let me know how that goes
