# Import from existing database (/docs/postgres/import-from-existing-database)

> For the complete Prisma documentation index, see [llms.txt](https://www.prisma.io/docs/llms.txt). A markdown version of any docs page is available by appending `.md` to its URL.

Choose the right path to import data from PostgreSQL or MySQL into Prisma Postgres.

Location: Postgres > Import from existing database

Use this page to choose the right import path for moving an existing database into Prisma Postgres.

## Choose your source database [#choose-your-source-database]

* [Import from PostgreSQL](https://www.prisma.io/docs/prisma-postgres/import-from-existing-database-postgresql)
* [Import from MySQL](https://www.prisma.io/docs/prisma-postgres/import-from-existing-database-mysql)

## Before you start [#before-you-start]

* Create a Prisma Postgres database first.
* Gather the connection details for your existing database.
* Use a [direct connection](https://www.prisma.io/docs/postgres/database/connecting-to-your-database) when importing data into Prisma Postgres.

## Related pages [#related-pages]

* [Connecting to your database](https://www.prisma.io/docs/postgres/database/connecting-to-your-database)
* [Prisma Postgres overview](https://www.prisma.io/docs/postgres)
* [Create a database with `create-db`](https://www.prisma.io/docs/postgres/npx-create-db)

## Related pages

- [`Best Postgres for AI apps`](https://www.prisma.io/docs/postgres/best-postgres-for-ai-apps): Why Prisma Postgres works well for AI and LLM workloads — built-in pooling, query caching, edge connectivity, pgvector, and MCP support.
- [`create-db`](https://www.prisma.io/docs/postgres/npx-create-db): Learn how to provision temporary Prisma Postgres databases with create-db
- [`Database`](https://www.prisma.io/docs/postgres/database): Overview of Prisma Postgres database operations, connections, pooling, backups, and query analysis.
- [`Error reference`](https://www.prisma.io/docs/postgres/error-reference): Error reference documentation for Prisma Postgres
- [`Prisma Postgres FAQ`](https://www.prisma.io/docs/postgres/faq): Common questions and answers about Prisma Postgres