Skip to main content
The database endpoints allow you to manage MySQL/MariaDB databases for your servers.

List Databases

Get all databases for a server.
string
required
The server identifier

Response

string
Hashed database identifier
object
Database host connection details
string
Database server hostname or IP address
integer
Database server port
string
Database name
string
Database username for authentication
string
IP address or wildcard (%) for allowed connections
integer
Maximum concurrent connections (0 = unlimited)

Create Database

Create a new database for the server.
string
required
Database name (will be prefixed with server identifier)
string
required
IP address or % wildcard for allowed connections

Response

object
Database password (only included on creation)
The database password is only returned when the database is first created. Store it securely - it cannot be retrieved again, only rotated.

Rotate Database Password

Generate a new random password for a database.
string
required
The server identifier
string
required
The database identifier (hashed ID from list)

Response

Rotating the password will immediately invalidate the old password. Update your application’s database configuration before rotating.

Delete Database

Delete a database and its user.
string
required
The server identifier
string
required
The database identifier (hashed ID from list)

Response

Returns 204 No Content on success.
Deleting a database is permanent and cannot be undone. All data in the database will be lost.

Database Limits

The number of databases you can create is limited by your server’s database_limit configuration. You can view this limit in the server details:
If you’ve reached the limit, you’ll receive an error when attempting to create a new database:

Connection Examples

Using MySQL Command Line

Using Connection String

PHP PDO Example

Node.js Example