--- title: "Migrating Databases" slug: "migrating-databases" updated: 2023-11-03T19:37:38Z published: 2023-11-03T19:37:38Z canonical: "docs.preset.io/migrating-databases" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.preset.io/llms.txt > Use this file to discover all available pages before exploring further. # Migrating Database Connections 👤 This documentation is intended for Workspace Admins. Check with your Team Admin for additional access. ## Overview Migrating database connections consists of **exporting the DB connection(s)** from the source [Workspace](/v1/docs/about-workspaces), and then importing them on the destination Workspace. The export process generates a ZIP file that includes the database connection metadata (with the exception of the password, for security reasons). There are two ways to migrate database connections: - **Using the Preset UI** - **Using the Preset API** ### Migrate Database Connections through the Preset UI #### Export process 1. Access the source Workspace. 2. Navigate to **Data > Databases** in the top navigation bar.![](https://cdn.document360.io/4749ddf8-aa05-4f3f-80e1-07a5d2d0f137/Images/Documentation/image-1660319933363.png) Here, you'll find a list of all databases connected to your Workspace. Hover your mouse over the desired one, and click on the **Export Icon** under the **Actions** column.![](https://cdn.document360.io/4749ddf8-aa05-4f3f-80e1-07a5d2d0f137/Images/Documentation/image-1660325288717.png) A ZIP file will be downloaded. Export Database Connections in bulkIt's possible to export database connections in bulk using the API. #### Import process 1. Access the destination Workspace. 2. Hover your mouse over the **+** button on the top right corner, then navigate to **Data > Connect database****.**![](https://cdn.document360.io/4749ddf8-aa05-4f3f-80e1-07a5d2d0f137/Images/Documentation/image-1660325625773.png) 3. Scroll the connection dialog down and click on **Import database from file****.**![](https://cdn.document360.io/4749ddf8-aa05-4f3f-80e1-07a5d2d0f137/Images/Documentation/image-1660325696225.png) 4. Select the ZIP file. 5. The connection dialog will prompt you to enter the database password. Provide it, and click on **CONNECT****.**![](https://cdn.document360.io/4749ddf8-aa05-4f3f-80e1-07a5d2d0f137/Images/Documentation/image-1660326030529.png) ### Migrate Database Connections Using the Preset API This process requires access to the Preset API The Preset API is only available on the [Enterprise Plan](https://preset.io/pricing/?utm_source=Preset-Docs&utm_medium=Referral&utm_campaign=Preset-Docs). Users can use the **Export Database Connections** **endpoint** and the **Import a Database Connection** **endpoint** documented on our [API documentation](https://api-docs.preset.io/#1be6d09f-3800-47ba-b149-0f2e09679f77).