The workflow JSON
Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →
{
"nodes": [
{
"name": "On clicking 'execute'",
"type": "n8n-nodes-base.manualTrigger",
"position": [
460,
230
],
"parameters": {},
"typeVersion": 1
},
{
"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": "<your credential>"
},
"typeVersion": 1
},
{
"name": "MySQL1",
"type": "n8n-nodes-base.mySql",
"position": [
1060,
230
],
"parameters": {
"table": "test",
"columns": "id, name"
},
"credentials": {
"mySql": "<your credential>"
},
"typeVersion": 1
},
{
"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
}
],
"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
}
]
]
}
}
}
Credentials you'll need
Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.
mySql
For the full experience including quality scoring and batch install features for each workflow upgrade to Pro
About this workflow
Create A Table In Mysql And Insert Data. Uses manualTrigger, mySql. Event-driven trigger; 4 nodes.
Source: https://github.com/Zie619/n8n-workflows — original creator credit. Request a take-down →
Related workflows
Workflows that share integrations, category, or trigger type with this one. All free to copy and import.
Convert Sql Table Into Excel Spreadsheet. Uses manualTrigger, mySql, spreadsheetFile, stickyNote. Event-driven trigger; 5 nodes.
Compare 2 SQL datasets. Uses mySql. Event-driven trigger; 5 nodes.
This workflow demonstrates how easy it is to export SQL query to Excel automatically!
Import Csv Into Mysql. Uses manualTrigger, readBinaryFile, spreadsheetFile, mySql. Event-driven trigger; 4 nodes.
This workflow demonstrates how CSV file can be automatically imported into existing MySQL database.