# urbestack-database-install

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-install [--skip-packages]
```

## Description

Installs MariaDB 10.11 from the distribution for customer databases. UrbeStack keeps MariaDB on that major version. The command writes one UrbeStack configuration file alongside the distribution's configuration to set utf8mb4 and disable name lookups at login. MariaDB uses the distribution's listen settings, and the firewall keeps its port closed. The command enables and starts MariaDB and verifies that UrbeStack can connect as root over the Unix socket without storing a password.

The command also sets up phpMyAdmin with its required PHP modules and a dedicated PHP-FPM master process under its own user. phpMyAdmin serves /phpmyadmin/ on the port set by phpmyadmin.port. The same path on UrbeStack's port redirects there.

Turn on database.enabled before running this command. It is safe to rerun and installs only missing packages. Use --skip-packages if MariaDB was installed separately and you only need to write the configuration, start the services and check access. Only one installation can run at a time.

## Same in the API

- [POST /databases/install](https://urbestack.com/docs/api/post-databases-install.md): Queue a MariaDB installation

## 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-list](https://urbestack.com/docs/commands/urbestack-database-list.md): Lists databases by their recorded ownership in UrbeStack.
- [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.
