n8n
Workflow
Create A Table In Mysql And Insert Data
This n8n workflow creates tasks and integrates with various services. Create A Table In Mysql And Insert Data - ready to import and run in your n8n instance.
n8n
workflow.json
About This Script
This n8n workflow creates tasks and integrates with various services. Create A Table In Mysql And Insert Data - ready to import and run in your n8n instance.
Features:
- Automates workflow tasks
- Ready to import into n8n
- Configurable parameters
Source Code
{
"nodes": [
{
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
460,
230
],
"parameters": [],
"typeVersion": 1,
"id": "c5b6e9fa-d4e5-4f5e-9840-ee6367584cf4"
},
{
"name": "MySQL",
"type": "n8n-nodes-base.mySql",
"position": [
660,
230
],
"parameters": {
"query": "CREATE TABLE test (id INT, name VARCHAR(255), PRIMARY KEY (id));",
"operation": "executeQuery"
},
"credentials": {
"mySql": "mysql_creds"
},
"typeVersion": 1,
"id": "5af874c4-956b-4847-b736-ab50c5621c7c"
},
{
"name": "MySQL1",
"type": "n8n-nodes-base.mySql",
"position": [
1060,
230
],
"parameters": {
"table": "test",
"columns": "id, name"
},
"credentials": {
"mySql": "mysql_creds"
},
"typeVersion": 1,
"id": "5717f685-d74f-4545-8894-eb686855cc54"
},
{
"name": "Set",
"type": "n8n-nodes-base.set",
"position": [
860,
230
],
"parameters": {
"values": {
"number": [
{
"name": "id"
}
],
"string": [
{
"name": "name",
"value": "n8n"
}
]
},
"options": [],
"keepOnlySet": true
},
"typeVersion": 1,
"alwaysOutputData": false,
"id": "91082437-a217-449a-a0c7-868960e4224d"
}
],
"connections": {
"Set": {
"main": [
[
{
"node": "MySQL1",
"type": "main",
"index": 0
}
]
]
},
"MySQL": {
"main": [
[
{
"node": "Set",
"type": "main",
"index": 0
}
]
]
},
"On clicking 'execute'": {
"main": [
[
{
"node": "MySQL",
"type": "main",
"index": 0
}
]
]
}
},
"n8n_version": "1.5.0"
}
Requirements
n8n instance, API credentials for connected services
Tags
#n8n
#automation
#workflow