This is an old revision of the document!
Hosting companies will typically perform database backups for all of the databases on your server on a daily basis. Please check with your hosting company's policies for details regarding their database backup procedures. We recommend performing your own database backup using a program such as phpMyAdmin. If phpMyAdmin is already installed on your server (usually accessed through your domain's control panel) you can perform the steps below to run your own database backup. If phpMyAdmin is not currently installed on your server, you can install it yourself by downloading the latest stable copy from http://www.phpmyadmin.net and following their installation instructions.
After logging into phpMyAdmin on your server, please follow the steps below to perform a backup of your database. Each step is marked with a numbered "green arrow" to help guide you through this very simple process.
note NOTE: The page layout and required steps may vary slightly depending upon the version of phpMyAdmin that is installed on your domain.
Step 1:
Select the database name you want to backup from the dropdown list in the left side of your screen.
myadmin_1
Step 2:
When the screen refreshes you will see a list of tables that are currently present within the database you just selected. The same set of table names will display on both sides of the screen. You will also see several tabs at the top of the screen. Click on the "Export" tab.
myadmin_2
Step 3:
When the screen refreshes (see image below for reference) click on the "Select All" link. All of the tables in the Export box will then be highlighted in blue.
note NOTE: The main purpose of backing up your database is to back up the tables that are constantly changing as users register and as you make changes in the admin panel. Because of this, we recommend that you do not "export" the table associated with the ZipSearch Module (if installed) since it does not change. The ZipSearch Module table is quite large which will make your exported file more difficult to manage later if you need to "recover" your database for some reason. So, once you have highlighted the all of tables in this step, you can then scroll down in the list and "deselect" the ZipSearch table (CTRL - Left Click). It is usually the last table in the list:
geodesic_zip_codes
Step 4:
Next, make sure that the "SQL" radio button is selected.
Step 5:
Some versions of phpMyAdmin will allow you to choose SQL export compatibility. If yours does, choose "MYSQL323" from the dropdown. Otherwise, skip this step.
Step 6:
Next, "check" the "Add DROP TABLE" box so that your exported tables will contain drop tables (This is extremely important step).
Step 7:
Check the "Save as file" box. This will allow you to save the file to a location on your pc, rather than simply displaying the export on your screen.
Step 8:
Finally, click the "Go" button.
You will then see a popup box asking you what to do with the data you are wanting to save. Select "Save to Disk" and then "OK" (These exact terms may vary depending upon the browser you are working with.) Now choose the location on your pc that you want to save the file to. When the process has finished, you will have a complete backup file of your database's tables in an SQL format. Essentially, what you have created is a "snapshot" of your database at that given time to be rerun at a later time if needed. That's all there is to it. Congratulations…you have just backed up your database.
myadmin_3