---
title: "Get mysql credentials"
method: GET
path: "/api/projects/{projectName}/mysqls/{mysqlName}/credentials"
tags: ["mysql"]
---

# Get mysql credentials

`GET /api/projects/{projectName}/mysqls/{mysqlName}/credentials`

## Request

- Base URL: `https://api.hostim.dev`
- URL: `https://api.hostim.dev/api/projects/{projectName}/mysqls/{mysqlName}/credentials`
- Auth: HTTP bearer

Get mysql credentials

## Path parameters

- `projectName` string, required
- `mysqlName` string, required

## Response `200`

OK

- MySQLCredentials
  - `hostname` string, required: The MySQL hostname
  - `port` string, required: The MySQL port
  - `username` string, required: The MySQL username
  - `password` string, required: The MySQL password
  - `database` string, required: The MySQL database

## Other responses

- `401`: User is not authorized
- `404`: Mysql not found
- `500`: Internal server error

---

[API](https://skmtc.dev/hostim/apis/hostim-api.md) · [All operations](https://skmtc.dev/hostim/apis/hostim-api/llms.txt) · [OpenAPI document](https://skmtc.dev/hostim/apis/hostim-api/revisions/37c35e1026a9?raw)
