Saturday, October 12, 2013

How to backup a database

In order to export your database,


  1. Login to cPanel with the usernale and password you hosting provider gave you.

  2. Find an icon for phpMyAdmin and click on it.

database_exporting_1


 


  1. It is going to take you to phpMyAdmin. The list of available databases will be listed on the left hand side once you get into phpMyAdmin.

  2. Using Ctrl+F you can easily highlight the one you are going to export. Click on it.

  3. Click Export at the top.

database_exporting_2


 


  1. Under Export Method you will be suggested to choose between the two options:

database_exporting_3


 


  1. Quick export that when clicked allows you to download an .sql file to your computer right away after you click “Go”.

  2. Custom export will display all options possible to export the file. Here are the most important ones:

  • under the Tables you can export all tables of your database or select particular ones from the list

database_exporting_4


 


  • Under Output you can give a name to your file, choose its character set and compression.

database_exporting_5


 


  • Under Format-specific options, make sure structure and data is selected.

database_exporting_6


 


  • In Object creation options, check Add DROP TABLE / VIEW / PROCEDURE / FUNCTION / EVENT statement

database_exporting_7


 


  • You may leave all other settings as they are by default.

  • At the bottom of the page, click Go.

  • You will be prompted to save a file on your computer. Once you do, the backup will be created and saved. It may take several minutes, depending on the size of the database.

database_exporting_8


 


That’s it.You can keep the backup and re-import it at any time to restore your database, on this server or any other MySQL server.



How to backup a database

No comments:

Post a Comment