Contributors: GamerZ
Donate link: http://lesterchan.net/site/donation/
Tags: database, manage, wp-dbmanager, manager, table, optimize, backup, queries, query, drop, empty, tables, table, run, repair, cron, schedule, scheduling, automatic
Requires at least: 3.9
Tested up to: 4.2
Stable tag: 2.78
Manages your WordPress database.
Allows you to optimize database, repair database, backup database, restore database, delete backup database , drop/empty tables and run selected queries. Supports automatic scheduling of backing up, optimizing and repairing of database.
- I spent most of my free time creating, updating, maintaining and supporting these plugins, if you really love my plugins and could spare me a couple of bucks, I will really appreciate it. If not feel free to use it without any obligations.
- Note that this plugin passes your datababase password via --password in the command line of mysqldump. This is convenient but as a trade off, it is insecure.
- 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. However, there is still a brief interval during which the value is visible. Also, on some systems this overwriting strategy is ineffective and the password remains visible to ps. Source: End-User Guidelines for Password Security
- If this is a concern to you, I recommend another database backup plugin called WP-DB-Backup
- To know about the difference between WP-DBManager and WP-DB-backup, checkout What is the difference between WP-DBManager and WP-DB-Backup? in the FAQ section.
- FIXED: escapeshellcmd on Windows. Props Gregory Karpinsky.
- FIXED: Blank screen downloading backup
- FIXED: Remove MySQL Version check to display tables stats
- NEW: Add wp_dbmanager_before_escapeshellcmd action just before escapeshellcmd()
- FIXED: Missing / for Windows
- FIXED: When activating the plugin, copy index.php to the backup folder
- FIXED: If you are on Apache, .htaccess will be copied to the backup folder, if you are on IIS, Web.config will be copied to the backup folder
- FIXED: When choosing 1 Month(s) for Backup/Optimize/Repair, the next date calculation is wrong
- FIXED: escapeshellarg() already escape $, no need to double escape it
- FIXED: Unable to backup/restore database if user database password has certain special characters in them
- FIXED: Use escapeshellcmd() to escape shell commands. Props Larry W. Cashdollari.
- FIXED: Do not allow LOAD_FILE to be run. Props Larry W. Cashdollari.
- FIXED: Uses dbmanager_is_valid_path() to check for mysql and mysqldump path. Fixes arbitrary command injection using backup path. Props Larry W. Cashdollari.
- FIXED: Uses realpath() to check for backup path. Fixes arbitrary command injection using backup path. Props Larry W. Cashdollari.
- NEW: Bump to 4.0
- New: Uses WordPress 3.9 Dashicons
- NEW: Allow you to hide admin notices in the DB Options page
- NEW: Allow Multisite Network Activate
- NEW: Uses WordPress uninstall.php file to uninstall the plugin
- NEW: Uses wp_mail() to send email instead of PHP mail()
- NEW: New From E-mail, From Name & Subject template
- FIXED: Issues with email from field if site title contains , (comma)
- FIXED: Notices
- FIXED: Set default character set to UTF-8. Props Karsonito
- FIXED: Use intval() instead of is_int() when checking for port number. Props Webby Scots
- NEW: Added Auto Repair Functionality
- NEW: Added nonce To All Forms For Added Security
- FIXED: Checks File Extension And Sanitise File Name That Is Pass Through The URL When Downloading Database File. Props to Joakim Jardenberg, Jonas Nordstram, Andreas Viklund
- FIXED: Bug In Cron Backup On Windows Server
- NEW: Works For WordPress 2.8 Only
- NEW: Uses jQuery Framework
- NEW: Ensure That .htaccess Is In Backup Folder By Informing The User If It Is NOT There
- NEW: Use _n() Instead Of __ngettext() And _n_noop() Instead Of __ngettext_noop()
- FIXED: Uses $_SERVER['PHP_SELF'] With plugin_basename(FILE) Instead Of Just $_SERVER['REQUEST_URI']
- NEW: Works For WordPress 2.7 Only
- NEW: Load Admin JS And CSS Only In WP-DBManager Admin Pages
- NEW: Added database-admin-css.css For WP-DBManager Admin CSS Styles
- NEW: Uses admin_url(), plugins_url() And site_url()
- NEW: Better Translation Using __ngetext() by Anna Ozeritskaya
- NEW: Right To Left Language Support by Kambiz R. Khojasteh
- FIXED: SSL Support
- FIXED: Bug In Downloading Backups In Other Languages by Kambiz R. Khojasteh
- FIXED: Bug In Backup/Restore On Windows Server When Path To mysqldump/mysql Or Backup File Contains Space Kambiz R. Khojasteh
- FIXED: In database-manage.php, $nice_file_date Was Calculated More Than Once by Kambiz R. Khojasteh
- FIXED: Returning Only DBManager Cron Schedules
- NEW: Works For WordPress 2.6
- FIXED: Unable To Optimize Or Repair Tables If Table Name Contains - (dash)
- NEW: Uses /wp-dbmanager/ Folder Instead Of /dbmanager/
- NEW: Uses wp-dbmanager.php Instead Of dbmanager.php
- NEW: Added Minute(s) Option To Backup And Optimize Cron Jobs
- NEW: Uses GiB, MiB, KiB Instead Of GB, MB, KB
- NEW: Added --skip-lock-tables Argument When Backing Up Database
- NEW: Limit The Maximum Number Of Backup Files In The Backup Folder
- NEW: Ability To Uninstall WP-DBManager
- NEW: Sort Database Backup Files By Date In Descending Order
- NEW: Added Repair Database Feature
- NEW: Automatic Scheduling Of Backing Up And Optimizing Of Database
- NEW: Works For WordPress 2.1 Only
- NEW: Removed database-config.php
- NEW: Localize WP-DBManager
- NEW: Added The Ability To Auto Detect MYSQL And MYSQL Dump Path
- FIXED: Database Table Names Not Appearing Correctly
- NEW: DBManager Administration Panel Is XHTML 1.0 Transitional
- FIXED: Unable To Download Backup DB Due To Header Sent Error
- FIXED: Some XHTML Code Fixes
- FIXED: Run Query Box Too Big
- FIXED: Header Sent Error
- FIXED: Extra Slashes For Mysql/Mysql Dump Path
- FIXED: Mismatch Date Due To GMT
- NEW: Improved On 'manage_database' Capabilities
- NEW: Added GigaBytes To File Size
- NEW: Added ALTER Statement To Allowed Queries
- NEW: Able To Empty/Drop Tables
- NEW: Able To EMail Database Backup File
- NEW: Splitted database-manager.php Into Individual Files
- NEW: Merge Restore And Delete Backup Database
- NEW: Included .htaccess File To Protect Backup Folder
- NEW: Checking Of Backup Status
- FIXED: Using Old Method To Add Submenu
- FIXED: PHP Short Tags
- FIXED: Redirect Back To The Same Page Instead Of Manage Database Page After Submitting Form
- NEW: Added 'manage_database' Capabilities To Administrator Role
- NEW: Compatible With WordPress 2.0 Only
- NEW: GPL License Added
- Open
wp-content/plugins
Folder - Put:
Folder: wp-dbmanager
- Activate
WP-DBManager
Plugin - 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 writable - Open
Folder: wp-content/backup-db
- If you are on Apache, move the
htaccess.txt
file fromFolder: wp-content/plugins/wp-dbmanager
toFolder: wp-content/backup-db/.htaccess
if it is not there already - If you are on IIS, move the
Web.config.txt
file fromFolder: wp-content/plugins/wp-dbmanager
toFolder: wp-content/backup-db/Web.config
if it is not there already - Move
index.php
file fromFolder: wp-content/plugins/wp-dbmanager
toFolder: wp-content/backup-db/index.php
if it is not there already - Go to
WP-Admin -> Database -> DB Options
to configure the database options
- Deactivate
WP-DBManager
Plugin - Open
wp-content/plugins
Folder - Put/Overwrite:
Folder: wp-dbmanager
- Activate
WP-DBManager
Plugin - Go to
WP-Admin -> Database -> DB Options
to re-configure the database options.
N/A
- Admin - Backup DB
- Admin - Empty/Drop Tables In DB
- Admin - DB Information
- Admin - Manage DB
- Admin - Optimize DB
- Admin - DB Options
- Admin - DB Options
- Admin - Repair DB
- Admin - Run Query in DB
- Ensure that your host allows you to access mysqldump. You can try to narrow the problem by Debugging via SSH:
- In
wp-dbmanager.php
- Find
check_backup_files();
on line 230 - Add below it
echo $command;
- Go to
WP-Admin -> Database -> Backup
- Click
Backup
- It should print some debugging statements
- Copy that line than run it in SSH
- If you need help on SSH contact your host or google for more info
- WP-DBManager uses
mysqldump
application to generate the backup andmysql
application to restore them via shell. - WP-DB-Backup uses PHP to generate the backup. In some cases WP-DB-Backup will work better for you because it requires less permissions. Not all host allows you to access mysqldump/mysql directly via shell.
- WP-DBManager allows you to have automatic optimizing and repairing of database on top of backing up of database.
- Ensure that you have renamed
htaccess.txt
to.htaccess
and placed it in your backup folder (defaults towp-content/backup-db/
) - If you are 100% sure you have did that and have verfied that the folder no longer is accessible to the public by visiting the URL
http://yousite.com/wp-content/backup-db/
, you can safely disable the notice by going toWP-Admin -> Database -> DB Options
and setHide Admin Notices
toYes
.