Skip to content

db

The db command gives you access to the database of an environment through phpMyAdmin. For changing text in the database, see search-replace.

Terminal window
kinstactl db login my-site --env live

Create a phpMyAdmin login link.

Terminal window
kinstactl db login my-site --env live
kinstactl db login [site] [options]

Create a phpMyAdmin login link

Arguments

ArgumentDescription
sitesite name, display name or ID

Options

OptionDescription
--env <environment>environment name or ID
--dry-runprint the resolved target and request; change nothing

Global options --profile, --json and --no-input apply too. See scripting and CI.

Kinsta API: GET /sites, POST /sites/environments/{env_id}/pma-login-token

The command prints a URL on stdout. Open it in a browser to be logged in to phpMyAdmin without a password. With --json it prints url and expires_at, so a script can see how long the link is valid. Treat the URL like a password while it is valid.

Without --env, a site with one environment uses it; a site with several gets a picker on a terminal and fails with ENV_REQUIRED in a script. See Sites and environments. The command accepts --dry-run, but has no --no-wait.