WP DB Bridge Plugin

What is this?

The WP DB Bridge plugin is a lightweight REST API that allows this platform to export and manage the database of remote WordPress sites where only FTP access is available (no SSH).

It provides three endpoints:

  • /wp-json/wp-db-bridge/v1/status — Health check
  • /wp-json/wp-db-bridge/v1/export — Download full SQL dump
  • /wp-json/wp-db-bridge/v1/run-commands — Execute WP-CLI-style commands (for deploying DB changes back)

All endpoints are protected by a randomly generated auth key.

Installation Steps
  1. Download the plugin file using the button below
  2. Connect to the remote site via FTP
  3. Navigate to wp-content/mu-plugins/ (create the mu-plugins folder if it doesn't exist)
  4. Upload wp-db-bridge.php to that folder — it activates automatically as a must-use plugin
  5. Log into the WordPress admin area, go to Settings → DB Bridge
  6. Copy the Auth Key shown on that page
  7. On this platform, edit the site in Sites and paste the auth key into the DB Bridge Auth Key field
Download wp-db-bridge.php
Security Notes
  • The auth key is a random 48-character string generated on first activation
  • All API requests require the auth key — no anonymous access
  • The key can be regenerated from Settings → DB Bridge in the WordPress admin
  • The run-commands endpoint only accepts wp commands (option updates, post creation, etc.) — no raw SQL
  • Installing as a must-use plugin (mu-plugins) prevents accidental deactivation