Automate PostgreSQL & MySQL database management on Linux servers
Ready for 3.0What this workflow does
This workflow has 14 nodes and runs manually, when you click “Execute workflow”. It uses only n8n's built-in nodes.
How it runs
Trigger: Manually, when you click “Execute workflow”.
- Set Parameters (Edit Fields (Set)): sets or maps fields
- Database Type Check (If): checks a condition and branches into true / false
- PostgreSQL Action Check (If): checks a condition and branches into true / false
- MySQL Action Check (If): checks a condition and branches into true / false
- Install PostgreSQL (SSH): uses SSH
- PostgreSQL Create Check (If): checks a condition and branches into true / false
- Install MySQL (SSH): uses SSH
- MySQL Create Check (If): checks a condition and branches into true / false
- Format Output (Edit Fields (Set)): sets or maps fields
- Create PostgreSQL DB (SSH): uses SSH
…plus 3 more steps. See the full node list below.
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
Nodes used (4)
- Manual Trigger
n8n-nodes-base.manualTrigger - Edit Fields (Set)
n8n-nodes-base.set - If
n8n-nodes-base.if - SSH
n8n-nodes-base.ssh
From the author
This automated n8n workflow efficiently manages the setup, creation, and deletion of PostgreSQL and MySQL databases on a Linux server, executing tasks in approximately 10 seconds. It automates installation, configuration, and user management with support for…