当前位置:网站首页>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
边栏推荐
- The turtle library displays the system time
- LeetCode 201. Digit range bitwise AND
- Classes and objects -- encapsulation
- 一篇文章读懂:Spark运行模式
- 隐私计算FATE-核心概念与单机部署
- UNIX Environment advanced programming --8- process control ---8.5 function exit-8.6 function wait and waitpid
- 1-4 message passing interface [CSP authentication]
- LeetCode 2016. Maximum difference between incremental elements
- It was so simple to implement system call
- 程序设计原则
猜你喜欢
![1-4 message passing interface [CSP authentication]](/img/db/aecda548693cdfb0e740bcf1a1c823.jpg)
1-4 message passing interface [CSP authentication]

Knowledge points of silicon steel sheet

Trees and binary trees: the concept of binary trees
![[51nod p2102] or subtraction and [bit operation]](/img/49/8cc722e5fb18de5ce30d58adb805db.jpg)
[51nod p2102] or subtraction and [bit operation]

(dfs+ tree DP) acwing 846 Center of gravity of tree

【pytorch环境安装搭建】

Smart210 uses SD card to burn uboot

Oracle自定义数据类型Type疑问

Tree and binary tree: application of binary tree traversal
![[51nod P3210] binary statistics](/img/a0/3fd197107336b10ea0a996f6b6ab58.jpg)
[51nod P3210] binary statistics
随机推荐
关于指令集位数,指令构架位数简述
LeetCode 72. Edit distance
[51nod p2527] or and sum [bit operation]
7-3 virus traceability (20 points)
23. Lottery
Overloading of typical operators
36氪首发|打造国产精算预测引擎等产品,「深轻科技」连续完成三轮融资
Node-RED系列(二七):扩展节点之s7节点的使用说明
Oracle自定义数据类型Type疑问
A hot MySQL training topic, making you a master of SQL
Jenkins accédant à l'authentification de l'utilisateur openldap
Trees and binary trees: traversal of binary trees
MySQL中redo日志和undo日志简述
Interrupt handling mechanism
VDD,DVDD,AVDD,VCC,AFVDD,DOVDD,IOVDD
index查list 注入的是mysql 执行的是oracle
Jenkins integrates LDAP. The problem of login failure of Jenkins users caused by LDAP configuration error is solved
[51nod p2102] or subtraction and [bit operation]
[51nod p2653] interval XOR [bit operation]
LeetCode 1143. Longest common subsequence