Home > MySQL and databases > Export & Import Mysql DB using?

Export & Import Mysql DB using?

October 6th, 2009

You can find phpMyAdmin
cpnel -> MySql -> [Go to Bottom of the page] phpMyAdmin

One of the most common tasks a database administrator performs is the frequent backup of the data in a database. phpMyAdmin simplifies this task via its “Export” module, which makes it possible to export the structure and contents of a database or table to a variety of different formats, either for backup or to migrate data from one database to another.

This module is accessible from the main application page, via the “Export” link.

Using this module is simplicity itself - all you have to do is select the databases to be exported, the format of the output file, and whether you would like the output file to contain the table definitions, the table contents or both. A number of different output formats are available - you can have your data exported as regular SQL queries, as comma-separated values, or as LaTEX-formatted data. You can also choose to either view the exported output directly in your browser (useful if you’re trying to quickly obtain information on the structure of a table) or save it to a file for archival or import into another application.

As with all good export modules, the output file created by phpMyAdmin can be imported back into the application to recreate the database. Simply select the appropriate database (or create a new one as needed), switch to the SQL tab of the database module, and give phpMyAdmin the location of the output file.

The application will now automatically take care of detecting the file format and importing its contents into the selected database.

That’s It. Now there is no need to use mysqldump command from the shell.

MySQL and databases

  1. No comments yet.
  1. No trackbacks yet.