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"]

Feedback

Was this page helpful?