Export

What is Export in MySQL?

Export in MySQL means saving your database data to a file so that you can keep it as a backup, move it to another server, or use it in another software like Excel or Google Sheets.

Why Export a MySQL Database?

  • Backup (Security): To save a copy in case something goes wrong.
  • Migration: To move data from one system or server to another.
  • Sharing: To send data to someone else or another app.
  • Testing: To use the same data on another system for testing purposes.

How to Export a MySQL Database using phpMyAdmin
Step 1: Open phpMyAdmin

In your browser, open: http://localhost/phpmyadmin/

Step 2: Select Your Database

On the left side, click on your database name (e.g., student_db).

Step 3: Click on "Export" Tab

On the top menu, click the Export tab.

Step 4: Choose Export Method
  • Quick: Export entire database quickly. Recommended for most users.
  • Custom: Choose specific tables, formats, and settings.
Step 5: Select File Format
  • SQL: To create a backup file that can be imported later.
  • CSV: To open data in Excel or Google Sheets.
Step 6: Click "Go"

After selecting your settings, click the Go button. Your database will be downloaded as a file (e.g., student_db.sql).

Steps With Image