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

milvus-logo
LFAI
< Docs
  • Python

create_database()

This method creates a database.

Invocation

create_database(db_name, using="default", timeout=None)

Parameters

ParametersDescriptionTypeRequired
db_nameName of the data to be created.StringTrue
usingAlias of a connectionStringFalse
timetoutTimeout duration of this operationIntegerFalse

Returns

No returns

Examples

from pymilvus import connections, db

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

db.create_database("books")

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?