# 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&#x26;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.
