This quickstart walks you through creating a local database container, retrieving its connection string, and verifying that the database is ready to accept connections. By the end, you will have a running PostgreSQL, MySQL, or Redis container and aDocumentation Index
Fetch the complete documentation index at: https://test.pzona.fun/llms.txt
Use this file to discover all available pages before exploring further.
DB_URL you can drop straight into your project.
Create your first database
Run Follow the prompts:After mkdb pulls the image and starts the container, it prints your connection string and expiry time:If you already know what you want, skip the prompts with flags:
mkdb start to launch the interactive setup. mkdb prompts you for the database type, a name, authentication preference, and volume option:Save your connection string
Retrieve your connection string at any time with Output:Append it directly to your Or copy it to your clipboard:
mkdb creds get:.env file:Verify the connection
Confirm the database is reachable by running a test query:You can also use the mkdb runs a lightweight query against the container and displays the result. For PostgreSQL it executes
ping alias:SELECT 1 as status, current_user, current_database();, and for Redis it sends a PING command.List your databases
See all containers mkdb is tracking:Or use the shorter alias:The output is a formatted table with the following columns:
Filter by type or status when you have many containers:
| Column | Description |
|---|---|
| Name | Container name you assigned at creation |
| Type | Database engine: postgres, mysql, or redis |
| Status | Current state: running, stopped, or expired |
| Port | Host port the container is bound to |
| TTL remaining | Time left before automatic cleanup |
Containers expire after 2 hours by default. When a container expires, mkdb stops and removes it along with its volume. To set a longer lifetime, pass
--ttl when you create the database — for example, mkdb start --db postgres --name mydb --ttl 48 keeps the container alive for 48 hours. You can also extend an existing container’s lifetime with mkdb extend --name mydb --hours 24.Next steps
All start flags
Explore every option available when creating a database container.
Manage TTL
Configure default lifetimes and extend containers before they expire.
Volume options
Choose between named volumes, custom paths, or no persistence.
Credentials
Retrieve, copy, and rotate connection strings and passwords.