Back to integrations

MongoDB and MySQL integration

Save yourself the work of writing custom integrations for MongoDB and MySQL and use n8n instead. Build adaptable and scalable Development, Data & Storage, workflows that work with your technology stack. All within a building experience you will love.

MongoDB
MySQL

How to connect MongoDB and MySQL

Create a new workflow and add the first step

In n8n, click the "Add workflow" button in the Workflows tab to create a new workflow. Add the starting point – a trigger on when your workflow should run: an app event, a schedule, a webhook call, another workflow, an AI chat, or a manual trigger. Sometimes, the HTTP Request node might already serve as your starting point.

MongoDB and MySQL integration: Create a new workflow and add the first step

Popular ways to use the MongoDB and MySQL integration

Build your own MongoDB and MySQL integration

Create custom MongoDB and MySQL workflows by choosing triggers and actions. Nodes come with global operations and settings, as well as app-specific parameters that can be configured. You can also use the HTTP Request node to query data from any app or service with a REST API.

MongoDB supported actions

MySQL supported actions

Other integrations with MongoDB

MongoDBGoogle SheetsMongoDBSlackMongoDBTelegram

Other integrations with MySQL

MySQLGoogle SheetsMySQLSlackMySQLTelegramMySQLPostgres
FAQs

FAQ

Can MongoDB connect with MySQL?

Can I use MongoDB’s API with n8n?

Can I use MySQL’s API with n8n?

Is n8n secure for integrating MongoDB and MySQL?

How to get started with MongoDB and MySQL integration in n8n.io?

Need help setting up your MongoDB and MySQL integration?

Discover our latest community's recommendations and join the discussions about MongoDB and MySQL integration.

MongoDB update / find and update running but not working for me

João Textor

Describe the problem/error/question I have a workflow in which I use MongoDB Find to get all entries in my collection. I Edit one of the fields using “Edit Fields”, and then I iterate a loop to Update that field on Mongo…

Ai Agent parsing issue with mongodb tool

Manas Gupta

Describe the problem/error/question Hi Folks, I am learning n8n flows. I stuck to store the object in the mongodb through ai agent tool. What is the error message (if any)? There is no error message but the output is no…

Using variables

Mohammadali

Hi guys. I am getting certain data from my SQL database. I want to pass that data to an API. The data I get from the database contains this variable: {{ $input.item }} the problem is that I can not send the value of…

MySQL Select and numbers

Michael Zareno

I have a MySQL table. Test data consists of an "Amount’ field, and three rows with values, 1000, My JSON input is: [ { "row_number": 2, "Amount": -1000 }, { "row_number": 3, "Amount": -52.23 }, …

Pass dynamic perameters to postgres_SQL node query

Shazim Ali

hi i am new to n8n basically i have build a chat bot, which is created query on the base of question, but sometime AI based queries are failed to give accurate result, so i have created sql function in vector database, t…

Looking to integrate MongoDB and MySQL in your company?

The world's most popular workflow automation platform for technical teams including

Why use n8n to integrate MongoDB with MySQL

Build complex workflows, really fast