Connect to a database
Learn how to connect your application to a Redis database hosted by Redis Enterprise Software and test your connection.
After you set up a cluster and create a Redis database, 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.
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.
If you want to secure your connection, set up TLS.
Connect to a database
Use one of the following connection methods to connect to your database:
-
redis-cli
utility -
Redis client for your preferred programming language
For examples, see Test client connection.