SHOW DATABASES statement lists all databases in the CockroachDB cluster.
Synopsis
Required privileges
The user must be granted theCONNECT privilege to specific databases in order to list those databases in the CockroachDB cluster.
Example
Show databases
\l shell command to list all databases:
Show databases with comments
You can useCOMMENT ON to add comments on a database.
COMMENT ON.
Preloaded databases
New clusters and existing clusters upgraded to v25.3 or later will include auto-generated databases, with the following purposes:- The empty
defaultdbdatabase is used if a client does not specify a database in the connection parameters. - The
movrdatabase contains data about users, vehicles, and rides for the vehicle-sharing app MovR (only when the cluster is started using thedemocommand). - The empty
postgresdatabase is provided for compatibility with PostgreSQL client applications that require it. - The
systemdatabase contains CockroachDB metadata and is read-only.
system database can be deleted if they are not needed.
Do not query the
system database directly. Instead, use objects within the system catalogs.
