---
title: "Create (MariaDB)"
method: POST
path: "/databases/mariadb"
tags: ["Databases"]
---

# Create (MariaDB)

`POST /databases/mariadb`

Create a new MariaDB database.

## Request body

- object
  - `server_uuid` string, required — UUID of the server
  - `project_uuid` string, required — UUID of the project
  - `environment_name` string, required — Name of the environment. You need to provide at least one of environment_name or environment_uuid.
  - `environment_uuid` string, required — UUID of the environment. You need to provide at least one of environment_name or environment_uuid.
  - `destination_uuid` string — UUID of the destination if the server has multiple destinations
  - `mariadb_conf` string — MariaDB conf
  - `mariadb_root_password` string — MariaDB root password
  - `mariadb_user` string — MariaDB user
  - `mariadb_password` string — MariaDB password
  - `mariadb_database` string — MariaDB database
  - `name` string — Name of the database
  - `description` string — Description of the database
  - `image` string — Docker Image of the database
  - `is_public` boolean — Is the database public?
  - `public_port` integer — Public port of the database
  - `public_port_timeout` integer — Public port timeout in seconds (default: 3600)
  - `limits_memory` string — Memory limit of the database
  - `limits_memory_swap` string — Memory swap limit of the database
  - `limits_memory_swappiness` integer — Memory swappiness of the database
  - `limits_memory_reservation` string — Memory reservation of the database
  - `limits_cpus` string — CPU limit of the database
  - `limits_cpuset` string — CPU set of the database
  - `limits_cpu_shares` integer — CPU shares of the database
  - `instant_deploy` boolean — Instant deploy the database
  - `tags` string[] — Tags to assign to the database.

## Response `200`

Database updated

## Other responses

- `400` — Invalid token.
- `401` — Unauthenticated.
- `422` — Validation error.

---

[API](https://skmtc.net/coollabsio/apis/coolify.md) · [All operations](https://skmtc.net/coollabsio/apis/coolify/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/coollabsio/coolify/versions/08be5dc8e729/schema)
