---
title: "Create a new mysql database"
method: POST
path: "/mysqldatabases"
tags: ["MySql databases"]
---

# Create a new mysql database

`POST /mysqldatabases`

## Request body

- CreateMySqlDatabase
  - `database_name` string — The name for the database. This will be prefixed during provisioning. The provided name during creation will be different from the provisioned database name.
  - `account_id` integer — The id of the account on which to create the database.
  - `password` string — The password for the database user. Passwords have to adhere to following rules: <ul><li>Between 8-20 characters.</li><li>Must be a mix of letters and digits.</li><li>Must contain at least one digit (0-9).</li><li>Must contain at least one letter (a-z).</li><li>Cannot contain spaces.</li><li>Cannot contain characters: * € $ & + } { ' " \ </li></ul>

## Response `202`

Accepted

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/combell/apis/public-api.md) · [All operations](https://skmtc.net/combell/apis/public-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/combell/public-api/revisions/d6d1ea012567/schema)
