Skip to main content
April 1, 2026Noble Desktop Publishing Team/4 min read

Database Backup: Free WordPress Tutorial

Master WordPress Database Protection and Recovery

Why Database Backups Matter

WordPress sites store all content in databases. Without regular backups, you risk losing everything from posts and pages to user data and site configurations.

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

Database Backup

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

1

Install WP-DB-Backup Plugin

Access WordPress admin, search for the plugin, and activate it for your site

2

Configure Backup Settings

Select tables to backup and choose download location for backup files

3

Test Backup Process

Make database changes and create a backup to verify functionality

4

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.

  1. Navigate to your WordPress admin panel:
    • Mac: localhost:8888/mrp/wp-admin
    • Windows: localhost/mrp/wp-admin
  2. Log in using your administrator credentials.

  3. Navigate to Plugins > Add New from the left sidebar.

  4. In the plugin search field, type wp-db-backup and press Return (Mac) or Enter (Windows).

  5. Locate WP-DB-Backup in the search results (typically appears first) and click Install Now.

  6. When WordPress prompts for confirmation to download the plugin, click OK.

  7. Once installation completes, click Activate Plugin to enable its functionality.

Local Development URLs

FeatureMacWindows
WordPress Admin URLlocalhost:8888/mrp/wp-adminlocalhost/mrp/wp-admin
Server EnvironmentMAMPXAMPP
Recommended: Remember these URLs for accessing your local WordPress installation

Installation Steps

0/4

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.

  1. Access the plugin configuration by navigating to Tools > Backup in the WordPress dashboard. This screen displays all available backup options and settings.

  2. 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.

  3. Scroll down to the Backup Options section to choose your preferred backup method.

  4. Select Download to your computer if not already chosen. This option provides immediate local storage of your backup file.

  5. Click the Backup now! button to initiate the backup process.

  6. 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.

  1. From the WordPress dashboard sidebar, click Pages to view all site pages.

  2. Click the checkbox next to Title at the top of the page list to select all pages simultaneously.

  3. From the Bulk Actions dropdown menu, select Move to Trash.

  4. 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.

  1. 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)

  1. Switch to the MAMP application window.
  2. Click Open WebStart page. If the MAMP start page doesn't automatically launch in your browser, manually navigate to the MAMP dashboard.
  3. In the navigation menu, select Tools > phpMyAdmin to access the database management interface.

Mac Restoration Process

1

Access MAMP Controls

Switch to MAMP application and open WebStart page

2

Open phpMyAdmin

Navigate to Tools > phpMyAdmin from the start page

3

Select Database

Choose 'mrp' from the database list on the left sidebar

4

Import Backup

Use Import tab to upload and restore the SQL backup file

Windows Users (XAMPP)

  1. Launch the XAMPP control panel application.
  2. Verify that both Apache and MySQL services show "Running" status in the control panel.
  3. Open your web browser and navigate to localhost.
  4. In the XAMPP dashboard's left sidebar, locate Tools and click phpMyAdmin.
  1. In phpMyAdmin's left sidebar, select the mrp database from the available databases list.

  2. Click the Import tab in the main interface area to access the database import functionality.

    bonus import

  3. On the import screen, click the Choose File or Browse button to locate your backup file.

  4. Navigate to your Downloads folder or wherever you saved the database backup file.

  5. 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.

  6. Click the Go button to begin the import process. phpMyAdmin will process the compressed SQL file and restore all database content.

  7. Once the import completes successfully, return to your WordPress admin panel:
    • Mac: localhost:8888/mrp/wp-admin
    • Windows: localhost/mrp/wp-admin
  8. 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

0/5
Restoration Complete

Once imported successfully, all deleted pages should be restored and visible in your WordPress admin Pages section.

Key Takeaways

1WordPress databases contain all site content and require regular backup protection to prevent data loss
2WP-DB-Backup plugin provides easy installation through the WordPress admin plugin repository
3Plugin automatically backs up core WordPress tables with options to include additional custom tables
4Local development environments use different URLs for Mac (MAMP) and Windows (XAMPP) setups
5Backup files download as compressed SQL files that can be imported through phpMyAdmin
6Database restoration requires accessing phpMyAdmin through your local server environment
7Testing backup functionality by making deliberate changes ensures your restoration process works correctly
8Regular database backups are essential for WordPress site maintenance and disaster recovery planning

RELATED ARTICLES