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

milvus-logo
LFAI
< Docs
  • Java
    • v2

createDatabase()

This operation creates a database with a name.

public void createDatabase(CreateDatabaseReq request)

Request Syntax

createDatabase(CreateDatabaseReq.builder()
    .databaseName(String databaseName)
    .build()
)

BUILDER METHODS:

  • databaseName(String databaseName)

    The name of the database to create.

RETURNS:

void

EXCEPTIONS:

  • MilvusClientExceptions

    This exception will be raised when any error occurs during this operation.

Example

CreateDatabaseReq createDatabaseReq = CreateDatabaseReq.builder()
        .databaseName(databaseName)
        .build();
client.createDatabase(createDatabaseReq);

Try Managed Milvus for Free

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

Get Started
Feedback

Was this page helpful?