🚀 Try Zilliz Cloud, the fully managed Milvus, for free—experience 10x faster performance! Try Now>>

milvus-logo
LFAI
< Docs
  • Python

list_database()

This method lists existing databases, including the default one created upon the Milvus start-up.

Invocation

list_database(using="default", timeout=None)

Parameters

ParametersDescriptionTypeRequired
usingAlias of a connectionStringFalse
timetoutTimeout duration of this operationIntegerFalse

Returns

A list of database names

Examples

from pymilvus import connections, db

conn = connections.connect(host="127.0.0.1", port=19530)

db.list_database("")

## Output
["default", "books"]

Try Managed Milvus for Free

Zilliz Cloud is hassle-free, powered by Milvus and 10x faster.

Get Started
Feedback

Was this page helpful?