> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://fyno.io/docs/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://fyno.io/docs/_mcp/server.

# MySQL

> Connect a MySQL database to Fyno Connect, configure connection credentials, validate access, and create cohorts from your database data.

Connect your MySQL database to Fyno Connect with your database credentials. Once connected, you can build cohorts directly from the data in your database.

## Connect your MySQL database

#### Open MySQL from Databases

Go to **Databases** and click **MySQL**. The **Add a MySQL database** pop-up opens.

#### Enter the connection details

Fill in the following fields:

* **Custom Name**: A name to identify this connection in Fyno Connect.
* **Host Address**: The host address of your MySQL server.
* **Database Name**: The name of the database you want to connect.
* **User Name**: The username used to access the database.
* **Password**: The password for that user.
* **TLS Enabled?**: Select this checkbox if your MySQL server uses TLS.

The host address, database name, user name and password are masked by default. Click the eye icon on a field to view its value.

![Add a MySQL database pop-up](/docs/_fern-img/8caf38eda2f4d366a2500236c7d87d9419e5e9478b85f8afb40d54a4e2d5b7fb.webp)

#### Add the database

Click **Add Database**. Fyno tests the connection and saves it once the test succeeds. The database then appears under **Connected DBs** on the same page.

#### Create cohorts

You can now create cohorts from the data in your database. See [Create Cohorts](./how-to-create-a-cohort-in-fyno-connect).