# create_database

> Create a MySQL database and its first user on an account, returning the full prefixed database and user names.

- Tier: W
- Required scope: write:database
- Annotations: none
- Docs: https://api.inleed.com/tools/create-database

## Description

Create a MySQL database and its first user on an account, returning the full prefixed database and user names. Pass the short unprefixed `name` and `user` (e.g. `shop`, `shopuser`) — DirectAdmin adds the `username_` prefix and the prefixed names come back. This creates a new database; it never deletes one (deleting a database is done in the control panel).

## Input schema

- `input` — string (required). A domain, email, website URL or Inleed service id for the account. Resolved to the owning account; the resolved target is echoed back.
- `name` — string (required). The short (unprefixed) database name, letters/numbers/underscores only, e.g. shop.
- `user` — string (required). The short (unprefixed) database user name, letters/numbers/underscores only, e.g. shopuser.
- `password` — string (required). The database user password (minimum 8 characters). Whatever you pass here is shown to the customer on the action card automatically, behind a Reveal button — do not repeat it in your prose, and do not call it temporary.

## Example call

```json
{
  "name": "create_database",
  "arguments": {
    "input": "example.se",
    "name": "example.se",
    "user": "example.se",
    "password": "example.se"
  }
}
```

