Skip to main content
Agency Program Hosting from 10% off. A dedicated account manager. Priority support. Built for growing agencies. Hosting from 10% off, a dedicated account manager and priority support for growing agencies. Speak to the team Join free
WP-DBManager icon

WP-DBManager

v4.0.0
by Lester Chan · 4.4 (95 reviews)

Manages your WordPress database.

50K+ active installs Updated Aug 09, 2026 Tested to 7.0.9 Requires PHP 8.2
Try Demo Download
Pre-installed Ready in ~10s No card
WP-DBManager

About WP-DBManager

WP-DBManager is a plugin that allows you to optimize, repair, backup and restore your WordPress database. It also supports automatic scheduling of these tasks. Please note that the plugin passes your database password in the command line, which may be insecure. If this is a concern, another plugin called WP-DB-Backup is recommended.

Screenshots

WP-DBManager screenshot
WP-DBManager screenshot
WP-DBManager screenshot
WP-DBManager screenshot
WP-DBManager screenshot
WP-DBManager screenshot
WP-DBManager screenshot
WP-DBManager screenshot
WP-DBManager screenshot

Frequently asked questions

How do I activate the WP-DBManager Plugin?
To activate the WP-DBManager Plugin, follow these steps:n1. Activate WP-DBManager Pluginn2. The script will automatically create a folder called backup-db in the wp-content folder if that folder is writable. If it is not created, please create the folder and ensure that the folder is writablen3. Open Folder: wp-content/backup-dbn4. If you are on Apache, move the htaccess.txt file from Folder: wp-content/plugins/wp-dbmanager to Folder: wp-content/backup-db/.htaccess if it is not there alreadyn5. If you are on IIS, move the Web.config.txt file from Folder: wp-content/plugins/wp-dbmanager to Folder: wp-content/backup-db/Web.config if it is not there alreadyn6. Move index.php file from Folder: wp-content/plugins/wp-dbmanager to Folder: wp-content/backup-db/index.php if it is not there alreadyn7. Go to WP-Admin -> Database -> DB Options to configure the database options
Where can I find the development of WP-DBManager?
You can find the development of WP-DBManager on the following GitHub repository: https://github.com/lesterchan/wp-dbmanager
Where can I find translations for WP-DBManager?
You can find translations for WP-DBManager on the following website: http://dev.wp-plugins.org/browser/wp-dbmanager/i18n/
Who created the plugin icon for WP-DBManager?
The plugin icon for WP-DBManager was created by Freepik from Flaticon
Is it secure to use WP-DBManager for database backup?
Using WP-DBManager for database backup may not be secure as it passes your database password via the command line of mysqldump. On some systems, your password becomes visible to system status programs such as ps that may be invoked by other users to display command lines. MySQL clients typically overwrite the command-line password argument with zeros during their initialization sequence, but there is still a brief interval during which the value is visible. If this is a concern to you, it is recommended to use another database backup plugin called WP-DB-Backup. To know more about the difference between WP-DBManager and WP-DB-Backup, please refer to the FAQ section of the WP-DBManager plugin.

Changelog

4.0.0

  • FIXED: Changing the backup folder on the settings screen left the new folder unprotected. The .htaccess, the Web.config, the silence-is-golden index.php and the 0750 were only ever written on activation and from the “try to fix” notice, so backups were then written to a bare directory — and the shipped default lives inside wp-content, which is served. A dump contains the users table
  • FIXED: The download and folder-repair handlers were registered on every request, front end included, where neither can legitimately arrive. Appending ?try_fix=1 to any URL on the site turned it into an “Access Denied” page, because the capability check runs before the nonce
  • FIXED: .sql was added to the site-wide upload types for everyone, so any Author gained a file type they could put in the public uploads directory — for a feature they cannot reach. Only users who may actually restore a database get it now
  • BREAKING: Requires WordPress 6.8 and PHP 8.2, up from 4.0 and 5.2.
  • BREAKING: The settings row is renamed from dbmanager_options to wp_dbmanager_options, and a second row, wp_dbmanager_version, records the plugin and schema versions. The rename happens by itself the first time the plugin loads.
  • BREAKING: The three cron hooks are renamed wp_dbmanager_cron_backup, wp_dbmanager_cron_optimize and wp_dbmanager_cron_repair, and their recurrences wp_dbmanager_backup, wp_dbmanager_optimize and wp_dbmanager_repair. The scheduled events are rebuilt automatically.
  • BREAKING: The Database admin pages have new addresses. admin.php?page=wp-dbmanager/database-backup.php is now admin.php?page=wp-dbmanager-backup, and so on for every screen. Update any bookmarks. The menu itself is unchanged, and the plugin no longer cares what its folder is called.
  • BREAKING: Every class is renamed from DBManager_* to WP_DBManager_*, and the files under includes/ with them.
  • BREAKING: A gzipped backup could be written, checksummed and e-mailed to you even when mysqldump had failed and produced nothing at all. See the FAQ. Check that your recent .sql.gz backups are not around 20 bytes.
  • BREAKING: Optimize DB and Repair DB no longer tick every table for you. Select the tables you want, then choose the action from Bulk actions. Previously every table was pre-selected, so one click acted on all of them.
  • BREAKING: Empty/Drop Tables can no longer empty some tables and drop others in the same submit. Choose Empty or Drop from Bulk actions, then submit again for the other.
  • NEW: A wp dbmanager WP-CLI command — tables, backups, backup, restore, delete, email, optimize, repair, empty and drop. Everything that changes anything asks first, so scripts need --yes. There is no run subcommand: wp db query already does that, and the Run SQL Query screen is unchanged.
  • NEW: A wp_dbmanager_capability filter. Every capability check in the plugin goes through it, so the Database screens can be handed to another role in one place. The default is still install_plugins.
  • NEW: Every table on the Database, Manage Backup DB, Optimize, Repair and Empty/Drop screens is now a standard WordPress list table. Columns sort, the select-all box works, and the Optimize and Repair screens show each table’s size and overhead so you can see what is actually worth acting on.
  • NEW: Several backups can be deleted or e-mailed in one go. Restore and Download still act on one at a time, and say so rather than guessing.
  • NEW: Settings is a Settings API screen, built from registered sections and fields, and the backup, optimize and repair schedules now follow the settings however they are changed, including from WP-CLI.
  • NEW: The Backup Database page now asks the server whether the backup folder is actually reachable over HTTP, instead of assuming a dropped in .htaccess protects it. nginx is detected and given a configuration snippet that works.
  • NEW: ‘Attach Backup File’ option to control whether the scheduled backup e-mail carries the database file. Existing sites keep attaching it.
  • NEW: New backups are gzipped by default.
  • NEW: A PHPUnit test suite and GitHub Actions CI covering every admin screen, the settings, the schedules and the backup handling, on six WordPress and PHP combinations in both single site and multisite, plus a vitest suite for the admin script.
  • NEW: WordPress 7.0
  • CHANGED: The admin screens use core’s own notice, table and form markup throughout. The hand-coloured green and red status lines are gone, which is what makes them legible in dark mode and to a screen reader.
  • CHANGED: New installs no longer prefill the backup e-mail address, so scheduled backup e-mails are opt-in.
  • CHANGED: Translations now come from the WordPress.org language packs. The bundled .pot file and the load_plugin_textdomain() call are gone, both were redundant.
  • FIXED: A failed gzipped backup is no longer passed off as a real one. mysqldump | gzip reports gzip’s exit status rather than mysqldump’s, and gzip turns empty input into a valid 20 byte file, so the old size check never saw the failure. Gzip is the default, so this was the common case.
  • FIXED: The confirmation dialogs before restoring, dropping and emptying showed Database.nThis Action Is Not Reversible. instead of proper line breaks.
  • FIXED: The Windows and Linux path hints under Settings displayed '<strong>mysqldump.exe</strong>' as literal text.
  • FIXED: Backups larger than 1 GiB reported their size in the wrong unit, so a 2 GiB backup showed as 2048.0 GiB.
  • FIXED: The mysqldump command, its connection arguments and the restore command were written out three separate times and had drifted apart; only two of the three checked that the dump had produced a file.
  • FIXED: Escape all output on the admin screens to prevent XSS.
  • FIXED: Validate table names against the database before emptying, dropping, optimizing or repairing.
  • FIXED: The database password is no longer passed on the command line.
  • FIXED: Require the install_plugins capability for the backup folder notice, the download and the folder fix.
  • FIXED: Only download backup files that resolve inside the backup folder.
  • FIXED: A download the plugin refuses no longer ends in a blank page. Manage Backup DB now reports Invalid Database Backup File instead of returning an empty response with no explanation.
  • FIXED: Validate the mysqldump, mysql and backup paths independently.
  • FIXED: Every file now refuses to run when loaded directly.
  • FIXED: Cron backups no longer rename and e-mail a dump that failed, an empty file is no longer passed off as a backup.
  • FIXED: Restoring no longer reports success when the restore did not run.
  • FIXED: Keep pruning old backups until the maximum is met, and treat a maximum below 1 as no limit.
  • FIXED: Two backups written in the same second are no longer invisible to pruning and the manage screen.
  • FIXED: Network activation and uninstall now cover every site, not just the first 100.
  • FIXED: Uninstalling on multisite no longer overwrites the current site ID while it works.
  • FIXED: Removed jQuery dependency.
  • NOTE: This release is numbered 4.0.0. 3.0.0 is already on WordPress.org, so the work that was going to be 3.0.0 ships as 4.0.0 instead.
  • NOTE: The mysqldump and mysql paths are now passed as a single argument. If you added extra flags to either path under Settings, move them out or your backups will fail.
  • NOTE: Backup file names now carry a real Unix timestamp. Backups taken before this release will show a date shifted by your timezone offset. The files themselves are fine.
  • NOTE: The plugin’s PHP functions are no longer global. Everything now lives in WP_DBManager_* classes under includes/. The wp_dbmanager_before_escapeshellcmd action is unchanged.
  • NOTE: The bare “To”, “From” and “and” labels carry translator context now, because a single word out of context is not enough to translate from. Those three msgids changed, so existing translations of them fall back to English until they are retranslated

Try other plugins

Yoast SEO icon

Yoast SEO

4.8 · 10M+ installs

Improve your WordPress SEO: Write better content and have a fully optimized WordPress site using the Yoast SEO…