Exporting a Database Using PhpMyAdmin

Creating a backup file of a database is also exporting a database. The backup file usually ends with the extension .sql file (a text file), and can be used to copy and import the database onto another server.

In this article we’ll show you how to export your database without losing any of your data.

  1. Log into phpMyAdmin

    If you are a HostMeNg customer: Log into your cPanel and click the phpMyAdmin icon under the Databases heading.

    If you are not a HostMeNg customer and do not use cPanel, please contact your hosting provider for more help.

  2. Click the database you are working with in the left menu

using-phpmyadmin-to-export-a-database

  1. Click Export in the top menu
  2. Under the Export heading, ensure that all of your tables are selected and that the SQL option is selected.
  3. Under the Options heading, ensure that you have selected, Add DROP TABLE / VIEW / PROCEDURE / FUNCTION
  4. Ensure the Save as file option (towards bottom of page) is checked. If you think you database is quite large, choose either “zipped” or “gzipped” to compress the file so it will be easier to download. If you choose none, you will be save the file without compression (which is OK, you don’t have to compress the file).
  5. Click Go
  6. You will be prompted to either open or save the file. Please select the option to save the file and then save the somewhere you’ll remember (such as directly on your desktop).

    Congratulations, a copy of your database has been exported.

Share This Post With Friends

No Comments, Be The First!

Your email address will not be published.