---
title: "ezgh databases connection"
description: "Show how to connect to a database."
---

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

# ezgh databases connection

{/* Generated by ezgh-cli's internal/tools/clidocs from the ezgh command tree. Don't edit: change the command's help in ezgh-cli and regenerate. */}

```sh
ezgh databases connection <database>
```

Show how to connect to a database: its endpoint, port and admin user, the `ezgh secrets read` command that prints the admin password (ezgh doesn't read it here), the CA bundle its certificate chains to, and the engine's client command, which checks the certificate against the bundle. Connect from an address in the database's allowed sources. From anywhere else, use `ezgh databases connect`.

Part of [`ezgh databases`](/cli/reference/databases).

## Flags

This command also takes the [global flags](/cli/reference#global-flags).

Source: https://docs.ezghcloud.com/cli/reference/databases-connection/index.mdx
