# urbestack-database-list

First published 3 Oct 2026 (release 0.1.0) · Unchanged since publication

UrbeStack release 0.2.35 command, run as root in the server shell.

## Usage

```
urbestack-database-list [--user CUSTOMER] [--owner CUSTOMER] [--server]
urbestack-database-list [--owner NAME] [--family RESELLER] [--q TEXT] [--over-1gb] [--page N] [--per-page N]
urbestack-database-list --name DATABASE
urbestack-database-list --orphans
```

## Description

Lists databases by their recorded ownership in UrbeStack. By default, it lists every database UrbeStack manages. Use --user to list one customer's databases. Use --owner to limit the basic or detailed listing to one customer. If you also pass --owner, it takes precedence over --user.

In the basic listing, --server applies when --owner is omitted. It adds databases with no recorded owner, accounts unknown to UrbeStack and the MariaDB version. Use urbestack-database-adopt to assign an unowned database to a customer. If MariaDB cannot be queried, the result includes the error alongside the UrbeStack list.

Any of --q, --over-1gb, --page, --per-page, --family or --name returns the detailed listing from the administrator's panel. Databases appear largest first. Each entry includes the owner's package, the database users with access and their grant levels, and the owner's newest nightly archive created after the database was created (last_copy). The result includes counts for each filter and overall totals under all.

--q matches any part of the database name or the owner's exact username. --over-1gb selects databases whose last measured size exceeded 1 GB. --family selects databases owned by the reseller or their customers. --name selects one database. Either --page or --per-page returns one page, with 25 entries per page by default. Omit both to return the full list.

--orphans lists unowned databases and accounts unknown to UrbeStack directly from MariaDB. It includes each database's size and the creation time of its oldest table, and each account's grants.

## Same in the API

- [GET /databases](https://urbestack.com/docs/api/get-databases.md): List databases
- [GET /databases/orphans](https://urbestack.com/docs/api/get-databases-orphans.md): List unowned MariaDB databases and accounts unknown to UrbeStack
- [GET /databases/status](https://urbestack.com/docs/api/get-databases-status.md): Get MariaDB status and connection settings

## Command family: database

- [urbestack-database-add](https://urbestack.com/docs/commands/urbestack-database-add.md): Creates a MariaDB database and records the customer named by --user as its owner.
- [urbestack-database-adopt](https://urbestack.com/docs/commands/urbestack-database-adopt.md): Assigns an existing MariaDB database with no recorded owner to the customer named by --user.
- [urbestack-database-del](https://urbestack.com/docs/commands/urbestack-database-del.md): Drops a database and all its data, and removes its ownership record and grants.
- [urbestack-database-grant-set](https://urbestack.com/docs/commands/urbestack-database-grant-set.md): Sets a database user's privileges on a named database.
- [urbestack-database-install](https://urbestack.com/docs/commands/urbestack-database-install.md): Installs MariaDB 10.11 from the distribution for customer databases.
- [urbestack-database-signon](https://urbestack.com/docs/commands/urbestack-database-signon.md): Returns a one-time phpMyAdmin sign-on URL for the account named by --user.
- [urbestack-database-signon-retire](https://urbestack.com/docs/commands/urbestack-database-signon-retire.md): Retires passwords issued to hidden phpMyAdmin database users by replacing them with undisclosed passwords.
- [urbestack-database-user-add](https://urbestack.com/docs/commands/urbestack-database-user-add.md): Creates a database user for a customer.
- [urbestack-database-user-del](https://urbestack.com/docs/commands/urbestack-database-user-del.md): Drops a database user and its grants from UrbeStack and MariaDB, including accounts created by hand for other hosts.
- [urbestack-database-user-list](https://urbestack.com/docs/commands/urbestack-database-user-list.md): Lists the database users managed by UrbeStack, with their grants.
- [urbestack-database-user-set](https://urbestack.com/docs/commands/urbestack-database-user-set.md): Changes a database user's password for every MariaDB host with an account under that name, including hosts added by hand.
