---
title: "Configure MySQL data source connection details | Grafana Labs"
description: "Learn how to configure the connection settings for your MySQL database."
---

> For a curated documentation index, see [llms.txt](/llms.txt). For the complete documentation index, see [llms-full.txt](/llms-full.txt).

# Configure MySQL data source connection details

In this milestone, you configure the connection details and the authentication credentials so that Grafana Cloud can connect to your MySQL database.

This includes the hostname, port, and user name.

Watch video -&gt;

1. In the **Host URL** field under the **Connection** section, enter the hostname or IP address of your MySQL server.
   
   For example, enter `localhost:3306` or `mysql.example.com:3306`.
2. In the **Username** field, enter the name of the MySQL user that you want to connect to.
   
   For example, enter `grafanaReader`.
3. In the **Password** field, enter the password for the MySQL user that you defined above.
   
   For example, enter `password`.

In the next milestone, you’ll select the Private data source Connect (PDC) and test the connection.

* * *

### More to explore (optional)

- [MySQL connection parameters](/docs/grafana/latest/datasources/mysql/#configure-the-data-source)
- [Network security for data sources](/docs/grafana-cloud/connect-externally-hosted/data-sources/)
- [Private data source connections](/docs/grafana-cloud/connect-externally-hosted/private-data-source-connect/)
