当前位置:网站首页>Node red series (24): use MySQL nodes in node red to add, delete, modify and query databases
Node red series (24): use MySQL nodes in node red to add, delete, modify and query databases
2022-06-13 09:46:00 【Bring me my Plaid】
Background introduction
Today, a student wrote me a private letter , How to achieve in nr Operate the database in , And add, delete, modify and check the foundation .node-red Is based on nodejs Developed , If there's something like that node-red package , You can support database links , And read / write operations . After receiving this demand , First of all, we should look for the corresponding node-red package , See if there is a corresponding package . Click on node-red The menu in the upper right corner , Click node management , And click Install , Search in input box mysql,( If you are looking for mysql Read / write database ) Here's the picture . The following figure shows all the relevant mysql Operation Library , Click the link behind the library name , You can view the details of the library .
Library installation and configuration
The library used in this article is node-red-node-mysql The latest version is 1.0.1 edition , Updated in the last three months .
https://flows.nodered.org/node/node-red-node-mysql Here is a detailed introduction to the library . From the details, we can know that this library is a node-red operation mysql Read / write node Library .
The library Allow for MySQL Basic access to the database , Such as query , Insert , Delete , But be careful sql Inject .
Executes sql Statement placed in msg.topic in , And the result will be msg.payload Pass down in the form of .
Usually , The payload returned will be an array of result rows .
If the key is not found , Then return to null.
developer It can be done by settings.js Add a line to change the reconnect retry timeout in milliseconds
mysqlReconnectTime: 30000,
The time zone
边栏推荐
- Pxxx local socket communication
- C language structure
- Jenkins集成Ldap,Ldap配置错误导致jenkins用户登录失败问题解决
- It was so simple to implement system call
- Tree and binary tree: basic operation and implementation of binary tree
- Jenkins access openldap user authentication
- Classes and objects -- Inheritance
- Jenkins接入Openldap用戶認證
- LeetCode 6095. Strong password checker II
- 【20220526】UE5.0.2 release d11782b
猜你喜欢
[51nod p3216] Award [bit operation]
[ssl1280] full arrangement
(bfs) acwing 844. Labyrinth
LeetCode 1. Sum of two numbers
简述请求过程
VGA common resolution and calculation method
[51nod 2493] sum of binary distances [bit operation]
UNIX Environment advanced programming --3-file io---3.10 file sharing
Tree and binary tree: operation and storage structure of tree
(bfs) acwing 847. Hierarchy of points in the graph
随机推荐
Summary of string, vector and array learning
LeetCode 6097. Match after replacing characters (Dictionary)
Classes and objects -- encapsulation
Jenkins接入Openldap用戶認證
LeetCode 2016. Maximum difference between incremental elements
聊聊 C# 方法重载的底层玩法
LeetCode 5259. Calculate the total tax payable
VDD, dvdd, avdd, VCC, afvdd, dovdd, iovdd
Pxxx local socket communication
[Luogu p1090, ssl1040] merged fruit [pile]
[51nod p2106] an odd number of times [bit operation]
Node-RED系列(二五):集成高德地图并实现3d地图和轨迹回放
Summary of random number learning
删除软链接
Programming principles
VGA common resolution and calculation method
[poj1845] sumdiv [number theory]
Acwing785. quick sort (sort+ quick sort + merge sort)
Calculate the number of days between two times (supports cross month and cross year)
(dp+ memory) acwing 901 skiing