Topics Covered in This WordPress Tutorial:
Installing the WP-DB-Backup Plugin, Backing up & Restoring Database Content
Learning Objectives
Plugin Installation
Learn to find, install, and activate the WP-DB-Backup plugin through the WordPress admin interface.
Backup Configuration
Configure backup settings, select tables, and choose download options for optimal protection.
Database Restoration
Use phpMyAdmin to restore databases from backup files when disaster strikes.
Exercise Preview

Exercise Overview
WordPress sites store all their content—posts, pages, user data, and configuration settings—in a MySQL database. This makes regular database backups not just important, but mission-critical for any professional WordPress installation. A corrupted database or server failure without a recent backup can mean losing months or years of content and customer data. Fortunately, robust backup solutions exist that can automate this process entirely. In this exercise, you'll master the WP-DB-Backup plugin to create reliable database backups and learn the restoration process that could save your site when disaster strikes.
Exercise Workflow
Install WP-DB-Backup Plugin
Access WordPress admin, search for the plugin, and activate it for your site
Configure Backup Settings
Select tables to backup and choose download location for backup files
Test Backup Process
Make database changes and create a backup to verify functionality
Restore from Backup
Use phpMyAdmin to restore the database from the backup file
Installing WP-DB-Backup
Before we begin backing up data, we need to install and activate the WP-DB-Backup plugin through WordPress's built-in plugin management system.
- Navigate to your WordPress admin panel:
- Mac: localhost:8888/mrp/wp-admin
- Windows: localhost/mrp/wp-admin
Log in using your administrator credentials.
Navigate to Plugins > Add New from the left sidebar.
In the plugin search field, type wp-db-backup and press Return (Mac) or Enter (Windows).
Locate WP-DB-Backup in the search results (typically appears first) and click Install Now.
When WordPress prompts for confirmation to download the plugin, click OK.
Once installation completes, click Activate Plugin to enable its functionality.
Local Development URLs
| Feature | Mac | Windows |
|---|---|---|
| WordPress Admin URL | localhost:8888/mrp/wp-admin | localhost/mrp/wp-admin |
| Server Environment | MAMP | XAMPP |
Installation Steps
Access the plugin repository from WordPress admin
Use exact plugin name for accurate results
Should appear at the top of search results
Required to enable backup functionality
Configuring Backup Settings
With the plugin installed, let's configure it for optimal backup performance. Proper configuration ensures you're capturing all necessary data while avoiding unnecessary bloat in your backup files.
Access the plugin configuration by navigating to Tools > Backup in the WordPress dashboard. This screen displays all available backup options and settings.
The plugin automatically selects WordPress core tables for backup—these contain your essential content and settings. If your site uses additional plugins that create custom tables, you may need to manually select those tables to ensure complete data protection.
Scroll down to the Backup Options section to choose your preferred backup method.
Select Download to your computer if not already chosen. This option provides immediate local storage of your backup file.
Click the Backup now! button to initiate the backup process.
Your browser should automatically download the backup file. If a dialog appears asking about saving the file, click Save File and choose your Downloads folder for easy access during restoration.
Testing Database Changes
To verify our backup system works correctly, we'll intentionally make a destructive change to the database. This simulation mirrors real-world scenarios where accidental deletions or corruption occur.
From the WordPress dashboard sidebar, click Pages to view all site pages.
Click the checkbox next to Title at the top of the page list to select all pages simultaneously.
From the Bulk Actions dropdown menu, select Move to Trash.
Click Apply to execute the action. Your pages will disappear from the main listing—simulating a catastrophic data loss scenario that requires database restoration.
Restoring from Database Backup
Now comes the critical moment: restoring your database from the backup we created. This process involves accessing phpMyAdmin, the web-based MySQL administration tool, to import our backup file directly into the database.
- When facing actual data loss, you'll need to restore from your backup using phpMyAdmin. Access it through your local development environment:
Mac Users (MAMP)
- Switch to the MAMP application window.
- Click Open WebStart page. If the MAMP start page doesn't automatically launch in your browser, manually navigate to the MAMP dashboard.
- In the navigation menu, select Tools > phpMyAdmin to access the database management interface.
Mac Restoration Process
Access MAMP Controls
Switch to MAMP application and open WebStart page
Open phpMyAdmin
Navigate to Tools > phpMyAdmin from the start page
Select Database
Choose 'mrp' from the database list on the left sidebar
Import Backup
Use Import tab to upload and restore the SQL backup file
Windows Users (XAMPP)
- Launch the XAMPP control panel application.
- Verify that both Apache and MySQL services show "Running" status in the control panel.
- Open your web browser and navigate to localhost.
- In the XAMPP dashboard's left sidebar, locate Tools and click phpMyAdmin.
In phpMyAdmin's left sidebar, select the mrp database from the available databases list.
Click the Import tab in the main interface area to access the database import functionality.

On the import screen, click the Choose File or Browse button to locate your backup file.
Navigate to your Downloads folder or wherever you saved the database backup file.
Select the backup SQL file you downloaded earlier. The filename follows the format mrp_wp_YYYYMMDD_###.SQL.gz, where the date and time indicate when the backup was created.
Click the Go button to begin the import process. phpMyAdmin will process the compressed SQL file and restore all database content.
- Once the import completes successfully, return to your WordPress admin panel:
- Mac: localhost:8888/mrp/wp-admin
- Windows: localhost/mrp/wp-admin
Navigate to Pages in the sidebar to verify the restoration. All your previously deleted pages should now be visible and fully functional—demonstrating the power of a reliable backup and restoration workflow.
Windows Restoration Checklist
Apache and MySQL must be active for database access
Access through Tools section on XAMPP start page
Ensure you're working with the correct WordPress database
Browse to Downloads folder and select the .SQL.gz file
Check WordPress admin to confirm pages are restored
Once imported successfully, all deleted pages should be restored and visible in your WordPress admin Pages section.