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

milvus-logo
LFAI
< Docs
  • Python

list_databases()

This operation lists all existing databases.

Request Syntax

list_databases(
    timeout: Optional[float] = None,
    **kwargs,
) -> [] string

PARAMETERS:

  • db_name (string) -

    [REQUIRED]

    Name of the database to drop.

  • timeout (float | None) -

    The timeout duration for this operation. Setting this to None indicates that it timeouts when a response arrives or an error occurs.

RETURN TYPE:

[]string

RETURNS:

A list of database names.

EXCEPTIONS:

  • MilvusException - Raised if any error occurs during this operation.

Examples

from pymilvus import MilvusClient

client = MilvusClient(uri, token) # db = "default" 

db_list = client.list_databases()
print(db_list)
# ["my_database", "default"]

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?