Coolest Guides on the Planet

coolest guides on the planet

Coolest Guides On The Planet

  • Home
  • macOS
  • WebDev
  • All Posts
  • Contact

How to backup your WordPress mysql database

February 13, 2011 Leave a Comment

One of the crucial components of a WordPress site is the database and it should be backed up on a regular basis to avoid the misfortune of the database becoming corrupt, hacked or deleted.

WordPress uses a mysql database, which can be managed by the mysql commands on a command line or by phpMyAdmin through a web browser, both methods are advanced and require some degree of learning.

A great cool tool to work with the database, through a WordPress interface is available by Lester Chan, it is simple and intuitive and very handy!, called WP-DBManager and available here. The installation should be fairly simple but there are instructions if you come undone.

The easiest way to install is via your WordPress site, Plugins page > Add New >, type in WP-DBManager, install and then activate.

search-plugin-wp-dbmanager

install-wordpress-wp-dbmanager

install-wordpress-wp-dbmanager

Once activated you will get an error in WordPress –

Your backup folder MIGHT be visible to the publicTo correct this issue, move the .htaccess file from wp-content/plugins/wp-dbmanager to /home/username/public_html/wp-content/backup-db

The htaccess file is a security file that controls who can see a folders contents, in this instance the file is named htaccess.txt, move it from the first directory to the second (in the above path) and rename it “.htaccess”, you will need to do this either in your FTP client or the file manager in cPanel. Since you will rename htaccess.txt to .htaccess it will become invisible so turn on show invisible files in your FTP/File Manager.

The files contents are:

<Files ~ “.*..*”>
order allow,deny
deny from all
</Files>

Which “deny from all” means that no one via the web/http protocol can see the contents of the folder, but you can see through your private ftp/file manager tools.

Once you move and rename that file the error goes away and now you can start to back up your mysql database which will have a left side menu in WordPress at the bottom called “Database”.

database-menu-wordpress

database-menu-wordpress

The first thing to do is to click Backup DB and backup the database, you can verify the db backup by checking in  public_html/wp-content/backup-db directory. Once the back up is in there you can now set up a schedule to back up and email a copy to you. Click on DB Options and go to Automatic Scheduling, here you can set the back up frequency, whether or not it is emailed and optimised. Frequently changed sites should have a daily backup and infrequent ones at least a weekly backup.

automatic-schedule

Schedule WP-DB Manager for backups

The default amount of backups that will be stored is 10, you can adjust this also in DB Options and put in the desired amount, now with copies of the database stored in both your /wp-content/backup-db folder and also your email inbox you have options to restore the database to a previous state.

Cats: WordPress Tags: backup, database, mysql

Tags

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls

Donate a Beer to the Coolest Guides

Get Beaver Builder Now!

Discuss

3gs 10.6 apache backup baseband boot clean urls cpanel css curl custom database drupal el capitan git Google image instadmg ios iphone jailbreak keys lion mac macos mojave macos sierra menu mysql OSX panda php phpmyadmin private public redirect redsn0w remote rsa SEO shell ssh terminal unstoppables upgrade urls
Get DesktopServer

Lynda

Lynda.com Online Training Videos

TreeHouse

smlinks

Learn WordPress
osx-modify-shell-path

How to Add to the Shell Path in macOS Big Sur and Catalina using Terminal

October 19, 2019

virtual-hosts osx 10.10 yosemite

Set up Virtual Hosts on macOS Catalina 10.15 in Apache

October 19, 2019

Installing Homebrew on macOS Catalina 10.15, Package Manager for Linux Apps

October 18, 2019

Where is the bash shell in macos Catalina?

October 12, 2019

Refine your search

  • All
  • Modules
  • Themes
  • Documentation
  • Forums & Issues
  • Groups

RSS ars technica

  • Mocked Trump Mobile yanks coverage map that ignored Trump renaming Gulf of Mexico
  • Apple’s Craig Federighi on the long road to the iPad’s Mac-like multitasking
  • New Apple study challenges whether AI models truly “reason” through problems
  • Apple details the end of Intel Mac support and a phaseout for Rosetta 2
  • Apple tiptoes with modest AI updates while rivals race ahead

RSS mac surfer

Donate

Copyright © 2025· Neil Gee - All Rights Reserved - Hosted by Runcloud

Copyright © 2025 · gee on Genesis Framework · WordPress · Log in