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

# Managed Databases: PostgreSQL, MySQL, MongoDB, Redis

> Managed PostgreSQL, MySQL, MongoDB and Redis databases: TLS-only connections, NVMe storage, one-click snapshots and no bandwidth fees, from the Standard plan.

<Frame>
  <img src="https://squarecloud.app/banners/en/databases.png" alt="Square Cloud Databases service overview" style={{ borderRadius: "0.2rem" }} />
</Frame>

## Why choose Square Cloud?

Managed PostgreSQL, MySQL, MongoDB and Redis instances, provisioned in a couple of clicks and reachable over an encrypted, certificate-authenticated connection. You get a production database without tuning a server, managing backups or paying for the bandwidth your app moves.

<CardGroup cols={2}>
  <Card title="NVMe-backed storage" icon="bolt">
    Instances run on **enterprise NVMe SSDs**, where random-read latency dominates real-world query performance, so indexed lookups and write-heavy workloads stay fast.
  </Card>

  <Card title="Zero network fees" icon="wifi">
    **No ingress or egress charges.** Read and write as much as your application needs without a metered-bandwidth bill, a cost that quietly dominates on most cloud providers.
  </Card>

  <Card title="Instant snapshots" icon="server">
    **One-click restore points** included at no extra cost. Recover from a bad migration or accidental delete without leaving the dashboard.
  </Card>

  <Card title="Encrypted by default" icon="shield-halved">
    Instances **only accept SSL/TLS connections** with Square Cloud-managed certificates. Plaintext connections are refused, so your data is encrypted in transit without any extra configuration.
  </Card>
</CardGroup>

## Supported databases

Every engine comes configured and ready to connect.

<CardGroup cols={2}>
  <Card title="PostgreSQL" icon="elephant" href="https://squarecloud.app/en/databases/postgresql" />

  <Card title="MongoDB" icon="leaf" href="https://squarecloud.app/en/databases/mongodb" />

  <Card title="MySQL" icon="database" href="https://squarecloud.app/en/databases/mysql" />

  <Card title="Redis" icon="r" href="https://squarecloud.app/en/databases/redis" />
</CardGroup>

### Versions

| Engine | Version |
| :-: | :-: |
| PostgreSQL | 17 |
| MySQL | 9 |
| MongoDB | 8 |
| Redis | 8 |

## How do I host my database?

You need an **active [Standard plan or higher](/en/platform/plans)**. For a full walkthrough with connection code in Node.js and Python, follow [Create and connect a managed database](/en/tutorials/how-to-deploy-your-database). In short:

<Steps>
  <Step title="Create a new database instance">
    Open the [Databases](https://squarecloud.app/en/dashboard/databases) page and click "Create Database".
  </Step>

  <Step title="Setting up your database instance">
    Pick the engine and fill in the name and the RAM.
  </Step>

  <Step title="Finish your instance creation">
    Click "Create". In a few seconds the database is ready, and its connection details are on its page in the dashboard.
  </Step>
</Steps>

## How do I connect to my database?

Databases only accept encrypted connections authenticated with a certificate. To connect:

<Steps>
  <Step title="Get the credentials and certificates">
    Open the database in the dashboard, copy the connection URL (host, port, username and password) and download the certificates.
  </Step>

  <Step title="Connect over SSL/TLS">
    Connect with your preferred client or library, with SSL/TLS enabled and the certificates set as the CA (root) certificate and as the client certificate and key.
    <Note>Most clients only need the `.pem`. Some ask for the `.key` and `.cert` files separately, or for a `.p12`.</Note>
  </Step>

  <Step title="Start using your database">
    You're ready to store and query data. Follow the database's performance and usage in the Square Cloud dashboard.
  </Step>
</Steps>

## Something went wrong?

<Card title="Database connection errors" icon="triangle-exclamation" href="/en/platform/troubleshooting/database-connection-errors">
  Fix SSL/TLS errors, timeouts, `ECONNREFUSED`, MySQL "Host is not allowed" and MongoDB network errors.
</Card>

## Frequently asked questions

<AccordionGroup>
  <Accordion title="Which databases can I host?">
    PostgreSQL, MySQL, MongoDB and Redis, all pre-configured and ready to connect.
  </Accordion>

  <Accordion title="Which plan do I need?">
    Database hosting requires an **active [Standard plan or higher](/en/platform/plans)**.
  </Accordion>
</AccordionGroup>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.