> For the complete documentation index, see [llms.txt](https://docs.getmedis.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getmedis.com/settings/default-database.md).

# Default Database

Medis provides the option to assign a default database for each individual connection in the connection settings.

<figure><img src="/files/EDb1xwhPXfrdqm2PoT21" alt="" width="563"><figcaption></figcaption></figure>

When you set a default database, Medis will automatically switch to that particular database upon server connection, rather than defaulting to the database with an index of 0.
