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")
Feedback

Was this page helpful?