---
title: "Create a new mysql user"
method: POST
path: "/mysqldatabases/{databaseName}/users"
tags: ["MySql databases"]
---

# Create a new mysql user

`POST /mysqldatabases/{databaseName}/users`

The creation of a new mysql user will result in a user with read_only rights.

## Path parameters

- `database_name` string, required

## Request body

- CreateMySqlUser
  - `name` string — User name User names have to adhere to following rules: <ul><li>Between 2-14 characters.</li><li>Must be a mix of letters and/or digits.</li><li>Must be lower cased.</li><li>Cannot contain spaces.</li></ul>
  - `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)
