> ## Documentation Index
> Fetch the complete documentation index at: https://docs.digitalfyre.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Importing & Exporting a Database

You can import and export MySQL and PostgreSQL databases directly from Plesk — useful for migrations, backups, or moving data between environments.

## MySQL — via phpMyAdmin

### Exporting

**1. Open phpMyAdmin**

Go to **Databases** in Plesk and click the **phpMyAdmin** icon next to your database.

**2. Select Export**

Click the **Export** tab at the top.

**3. Export**

Leave the format as **SQL** and click **Export**. The file will download to your computer.

### Importing

**1. Open phpMyAdmin**

Go to **Databases** in Plesk and click the **phpMyAdmin** icon next to your database.

**2. Select Import**

Click the **Import** tab at the top.

**3. Choose File**

Click **Choose File**, select your `.sql` file, and click **Import**.

> [!WARNING]
>
> Importing a database will overwrite existing data if table names conflict. Export a backup first if the database already contains data.

## MySQL & PostgreSQL — via Plesk

For both database types, Plesk provides built-in export and import tools as an alternative to phpMyAdmin.

**1. Go to Databases**

Log in to Plesk and click **Databases** in the left sidebar.

**2. Select Your Database**

Click the name of the database you want to export or import.

**3. Export or Import**

Use the **Export Dump** or **Import Dump** buttons to download or upload a database file.

> [!NOTE]
>
> For large databases, the Plesk dump method is more reliable than phpMyAdmin, which can time out on large files.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.