Skip to content

cli: extend cockroach init (or 1st start without --join) with SQL initialization #26722

@knz

Description

@knz

Often requested on Gitter: when initializing a new cluster via container orchestration, it is useful to populate the initial state of the cluster using SQL (e.g. to set up users, zones, initial databases, etc).

The start and init commands should be extended to support -f (read from a file) and -e (execute specific statements) like cockroach sql.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-enhancementSolution expected to add code/behavior + preserve backward-compat (pg compat issues are exception)

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions