---
title: "Managed MariaDB & Database Studio"
description: "Provision isolated MariaDB databases, browse tables, run SQL queries, import or export .sql and .sql.gz dumps, and rotate credentials in Hosted EZ Database Studio."
---

> Documentation Index
> Fetch the complete documentation index at: https://docs.hostedez.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Managed MariaDB & Database Studio

Hosted EZ provides isolated, managed **MariaDB** databases with a built-in **Database Studio** directly inside `app.hostedez.com`. Every database gets its own logical schema, isolated MariaDB user, TLS-encrypted connection credentials, and live storage usage tracking against your plan quota.

- **Auto-provisioned for CMS sites**: Creating a **WordPress**, **Drupal**, or **Nextcloud** site automatically provisions and links a dedicated MariaDB database.
- **Optional for Laravel & Custom PHP**: Enable **Include database** during creation, or create a standalone database anytime from the **Databases** tab and link it to a site.
- **Not used for Static sites**: Static sites serve pre-built files directly with no database backend.

## Create a MariaDB Database

1. **Open the Databases tab**

   In `app.hostedez.com`, select **Databases** from the top navigation bar.
2. **Create a new database**

   Click **New database**, enter a display name (up to 64 characters), and optionally link it to one of your PHP/CMS sites.
3. **Wait for Available status**

   Hosted EZ provisions an isolated MariaDB database (`db_...`) and user. Once status changes to **Available**, open it to launch **Database Studio** or view credentials.

## Built-In Database Studio

Manage schemas, inspect data, and run migrations right from your browser—no separate database admin app to install or expose publicly.

### Table Browser

Open the **Tables** view to inspect every table in your database:

- View table name, storage engine, estimated row count, data size, index size, total size, and collation.
- Click any table to inspect column definitions (type, nullability, default values, keys) and browse paginated rows (**50 rows** per page by default, up to **200 rows** per page).
- Click **Refresh usage** to recompute live database storage usage against your plan's combined site + database storage quota.

### SQL Query Console

Open the **Query** view to execute SQL statements directly against your isolated MariaDB user:

- Supports up to **32 KiB** per SQL statement.
- Enforces a **15-second** per-statement execution timeout so accidental full-table scans cannot stall your database.
- Returns structured column headers, tabular rows, affected row counts, and MariaDB error codes/messages when a query fails.

### SQL Import (`.sql` and `.sql.gz`)

Import dumps generated by `mysqldump`, MariaDB client tools, TablePlus, or phpMyAdmin exports from a previous host directly inside **Database Studio** → **Import**:

| Import Setting | Behavior / Limit |
| --- | --- |
| Supported file formats | `.sql`, `.sql.gz`, or `.gz` (auto-detected or explicitly chosen) |
| Maximum upload size | **64 MiB** compressed or raw upload |
| Maximum decompressed SQL size | **256 MiB** |
| Maximum statements per import | **200,000** statements |
| Per-statement timeout | **60 seconds** |
| Concurrency | One import per database at a time (locked until completion) |

Two helpful import toggles are enabled to make migrating from other hosts effortless:

- **Ignore database statements** (`ignoreDatabaseStatements`): Automatically skips top-level `USE`, `CREATE DATABASE` / `CREATE SCHEMA`, `DROP DATABASE`, and `ALTER DATABASE` statements from third-party dumps so the import targets your Hosted EZ database cleanly.
- **Disable foreign key checks** (`disableForeignKeyChecks`): Wraps the import in `SET FOREIGN_KEY_CHECKS = 0` and restores `1` afterward to prevent table-order constraint failures.

### SQL Export (`.sql` and `.sql.gz`)

Download a portable SQL snapshot anytime from **Database Studio** → **Export**:

- **Format**: Choose plain `.sql` or gzip-compressed `.sql.gz`.
- **Table selection**: Export the entire database or select specific tables (up to **500 tables**).
- **Schema only** (`schemaOnly`): Export `CREATE TABLE` DDL without row data.
- **Include `DROP TABLE`** (`includeDropTable`): Toggle `DROP TABLE IF EXISTS` statements before each table definition (enabled by default).

## Credentials & Password Rotation

Open the **Credentials** tab inside any database to view:

- **Host**: Your MariaDB endpoint hostname
- **Port**: `3306`
- **Database name**: The isolated logical database name
- **Username & Password**: Isolated per-database credentials (TLS encrypted)

To rotate credentials after sharing access or during routine security hygiene, click **Rotate password**. Hosted EZ queues a password rotation for the isolated MariaDB user.

> **Update your application config after rotating**
>
> After rotating a database password, update your application configuration file (such as `wp-config.php`, `.env`, or `settings.php`) with the new password so your site can reconnect.

## Managing Databases with MCP

AI agents connected to the [Hosted EZ MCP Server](/automation/mcp-server) have full access to 11 MariaDB tools, including `list_databases`, `create_database`, `list_database_tables`, `browse_database_table`, `run_database_query`, `export_database_sql`, `import_database_sql`, and `rotate_database_password`.

> **Inline MCP dump limits**
>
> Over MCP, `export_database_sql` supports inline dumps up to **2 MiB** and `import_database_sql` supports inline SQL or base64 `.sql.gz` up to **4 MiB**. For larger dumps (up to **64 MiB** upload / **256 MiB** decompressed), use **Database Studio** in the dashboard.

Source: https://docs.hostedez.com/databases/mariadb/index.mdx
