# MySQL MySQL Authentication

Source: https://userguide.qualytics.io/source-datastore/datastore/jdbc/mysql/authentication/

Qualytics signs in to MySQL with a user name and password. Every query runs as that account, so MySQL uses its grants to decide what Qualytics may read or write (see [Permissions](https://userguide.qualytics.io/source-datastore/datastore/jdbc/mysql/permissions/)).

## User and Password

Fill in **User** and **Password** in the **Connection Properties** section of the connection form. Use a dedicated account for Qualytics, so its grants and its sign-ins are easy to tell apart from people's.

## Accounts and Hosts

MySQL tells accounts apart by user name **and** host. `'qualytics'@'localhost'` and `'qualytics'@'%'` are two separate accounts, each with its own password and grants. Create the Qualytics account for the host Qualytics connects from, or for `'%'`, and grant the [Permissions](https://userguide.qualytics.io/source-datastore/datastore/jdbc/mysql/permissions/) to that same account.

> **Note**
>
> An account created only for `localhost` cannot sign in from your Qualytics deployment, and the connection fails as if the password were wrong. See [Authentication Errors](https://userguide.qualytics.io/source-datastore/datastore/jdbc/mysql/troubleshooting/#authentication-errors).

> **Tip: Credentials from a secrets manager**
>
> Any credential field can take its value from HashiCorp Vault or another secrets manager instead of being typed in: turn on **Secrets Management** on the connection and write `${key}` in the field. See the [HashiCorp Vault](https://userguide.qualytics.io/source-datastore/datastore/deep-dive/hashicorp-vault/) pages for setup and troubleshooting.

*Last updated: November 16, 2026.*
