Back to Redis

Index

content/operate/rs/7.22/databases/connect/_index.md

latest1.7 KB
Original Source

After you [set up a cluster]({{< relref "/operate/rs/7.22/clusters/new-cluster-setup" >}}) and [create a Redis database]({{< relref "/operate/rs/7.22/databases/create" >}}), you can connect to your database.

To connect to your database, you need the database endpoint, which includes the cluster name (FQDN) and the database port. To view and copy public and private endpoints for a database in the cluster, see the database’s Configuration > General section in the Cluster Manager UI.

{{<image filename="images/rs/screenshots/databases/config-general-endpoints.png" width="75%" alt="View public and private endpoints from the General section of the database's Configuration screen." >}}

If you try to connect with the FQDN, and the database does not respond, try connecting with the IP address. If this succeeds, DNS is not properly configured. To set up DNS, see [Configure cluster DNS]({{< relref "/operate/rs/7.22/networking/cluster-dns" >}}).

If you want to secure your connection, set up [TLS]({{< relref "/operate/rs/7.22/security/encryption/tls/" >}}).

Connect to a database

Use one of the following connection methods to connect to your database:

  • [redis-cli]({{< relref "/operate/rs/7.22/references/cli-utilities/redis-cli/" >}}) utility

  • Redis Insight

  • [Redis client]({{< relref "/develop/clients" >}}) for your preferred programming language

For examples, see [Test client connection]({{< relref "/operate/rs/7.22/databases/connect/test-client-connectivity" >}}).

Continue learning with Redis University

See the Connect to a database on Redis Software for the course.