> 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="https://1795687051-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi5p5XPz8fymxJwncbif5%2Fuploads%2FNpkR305mfEXMcLRQezKz%2FCleanShot%202023-12-22%20at%2017.27.53%402x.png?alt=media&amp;token=0efebace-0f40-4e6f-9bce-22c240e53112" 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.
