# Upstash Redis

Upstash Redis provides a fully managed highly available Redis compatible database.

## Create a Database

To create a database, you need to go to the [Upstash Console](https://console.upstash.com/redis?new=true\&ref=medis) and enter a name for your database. You can also choose the regions where you want to create your database.

<figure><img src="https://1795687051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi5p5XPz8fymxJwncbif5%2Fuploads%2FiD4N4spTXgA36NLtJ7ST%2Fimage.png?alt=media&#x26;token=80a17131-b9be-4eb6-8652-c1f60022136d" alt=""><figcaption></figcaption></figure>

## Connect to the Database

Once you have created a database, you can connect to it using the `Endpoint`, `Port` and `Password`. You can find them in the database details page.<br>

<figure><img src="https://1795687051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi5p5XPz8fymxJwncbif5%2Fuploads%2FG2Ya4LsK85en1Dyzqm6v%2Fimage.png?alt=media&#x26;token=37efb1ab-b69e-43a9-a32a-731ee2466264" alt=""><figcaption></figcaption></figure>

## Connect to the Database using Medis

Lastly open Medis and click on the `New Server` button. Enter the `Host`, `Port` and `Password`, but leave the `Username` empty.

If you have enabled `TLS (SSL)` on your database, you need to enable it in Medis as well.

<figure><img src="https://1795687051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi5p5XPz8fymxJwncbif5%2Fuploads%2FXgd7PL5WK9GOnbWF9dxi%2Fimage.png?alt=media&#x26;token=77046031-45f7-4388-842d-4e36bb275270" alt=""><figcaption></figcaption></figure>

\ <br>
