Backup and Restore Your Database Using phpMyAdmin

From e107 Wiki
Jump to: navigation, search

e107 Wiki: English | Русский | Deutsch | Français | Magyar | Português | Български | Česky | Nederlands | Ελληνικά | Italiano | Norske | Polska | Slovenščina | Español | Svenska | Translate: Wiki | Page

logo_wiki.png

Current Release 1.0.4 | e107.org | Download | Changelog | Forum | Plugins | Themes | RSS Feed of Latest Changes | Atom Feed of Latest Changes


How To's Section of e107 handbook
Main page > I : First Aid > II : Development > III : Administration > IV : How To's > V : Plugin Writing > VI : Theming & Shortcodes


This page is a stub. You can help e107 by expanding it.

Contents

Introduction

From 0.7.0 onwards the internal MySQL database backup tool has been removed. This is because providing an evolving, stable backup solution for the constantly changing structure of MySQL databases would require a lot of effort and also because there are already many quality Open Source backup tools available, such as phpmyadmin.

Don't forget to backup your files, download your website files using FTP under /public_html - the folder where you installed e107.

Backing Up Your Database

  1. First, navigate to your phpMyAdmin page via cPanel or whatever alternative administration system your host provides i.e. Plesk etc. and log in
  2. From the dropdown box on the left (or the text link) click on your e107 database to show all the fields
  3. In the main page, click on the 'Export' tab
  4. Make sure the main 'Structure' 'select all' and 'Data' boxes are ticked
  5. In the right box, make sure 'Add drop table', 'Add AUTO_INCREMENT value' and 'Enclose table and field names with backquotes' are ticked
  6. select the SQL format in the 'export' column'
  7. Tick 'Save as file'
  8. If you want the backup file compressed, tick either 'zipped' or 'gzipped'
  9. Click 'Go'to save your file - the preferred location would be your own PC - saving a backup on a host server could be problematic should the server hard drive fail. It's always better to have your own backup locally!

Restoring a backup

in PhpMyAdmin main page - Click on the 'SQL' tab at the top and browse to the location of your backup file. Then select 'Go' from the tab at the bottom right corner of the screen - you may need to empty your existing database before you can restore the backup however normally you don't as the backup will simply overwrite the existing database.

Back-up / Restore related plugins

Some plugins that might become handy for not so experienced PhpMyAdmin users: