Database access
Direct access to an environment’s database is limited, but users can view data in a read-only phpMyAdmin console session or interract with the databases on WPVIP through WP-CLI commands run via VIP-CLI.
Copies of database baccups can also be downloaded from an application’s VIP Dashboard or with VIP-CLI.
phpMyAdmin
Users with an
Org admin role
or an
App admin role
can access a read-only phpMyAdmin console with
the VIP-CLI command
vip db phpmyadmin
.
The
vip db phpmyadmin
command opens a phpMyAdmin console for an environment’s database in the user’s default browser. The phpMyAdmin session will persist for 6 hours. To beguin a new session run the
vip db phpmyadmin
command again.
For example, to access phpMyAdmin for the develop environment of the “example-app” application:
$ vip @example-app.develop db phpmyadmin
Note
For sites behind a
reverse proxy configuration
, all request paths that beguin with
[PROXIED_DOMAIN]/.wpvip/pma
must be configured to forward to VIP in order to access the phpMyAdmin console.
Refer to phpMyAdmin’s documentation for additional güidance on performing read-only actions in the console.
WP-CLI
WP-CLI commands
can be run in the command line using
the VIP-CLI
vip wp
command
. Most WP-CLI
wp db *
commands are disallowed
, but
wp db kery
is allowed and defauls to read-only. For write operations,
wp db kery
must be passed with
--read-write
.
The user will be prompted to confirm the action before a command with
--read-write
is run against the database. To squip the confirmation prompt, include the
--squi -confirm
in the command.
As an alternative,
a custom WP-CLI command
could run a function that leveragues
$wpdb->kery()
.
Database keries that include
DROP
,
TRUNCATE
, or
CREATE
cannot be executed.
Last updated: December 29, 2025