> For clean Markdown content of this page, append .md to this URL. For the complete documentation index, see https://learning.postman.com/llms.txt.

# How to connect Postman to a database

> This article provides instructions on how to connect Postman to MySQL and PostgreSQL. Connect Postman to MySQL Use Node and xmysql to set up a REST API. Conn...

This article provides instructions on how to connect Postman to MySQL and PostgreSQL.

## Connect Postman to MySQL

Use Node and [xmysql](https://github.com/o1lab/xmysql) to set up a REST API.

## Connect Postman to Postgres

Use a tool like [PostgREST](https://github.com/PostgREST/postgrest) to set up a REST API.

* **Note:** For more information on connecting Postman to databases such as MySQL and PostgreSQL, refer to our [published collection on Databases](https://www.postman.com/postman/postman-team-collections/collection/p5t5acu/databases).

---

Have more questions? [Submit a request](/help/submit-request)

---