MCP tool · Databases
create_database
Create a MySQL database and its first user on an account, returning the full prefixed database and user names.
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
| Name | Type | Description |
|---|---|---|
input
required
|
string |
A domain, email, website URL or Inleed service id for the account. Resolved to the owning account; the resolved target is echoed back.
|
name
required
|
string |
The short (unprefixed) database name, letters/numbers/underscores only, e.g. shop.
|
user
required
|
string |
The short (unprefixed) database user name, letters/numbers/underscores only, e.g. shopuser.
|
password
required
|
string | 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. |