1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/storage/mysql
tmdoit 9c9af2952c Update to the latest mysql package (#476)
Updating from mysql 2.13 to 2.16 fixed for me a problem with error msg "Error: pool is closed" produced every few seconds in NR debug window.
2018-08-13 12:29:42 +01:00
..
68-mysql.html Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
68-mysql.js remove invalid error parameter from mysql callback 2017-03-17 13:45:47 +00:00
LICENSE Update licenses and packages for all nodes 2016-11-06 20:26:19 +00:00
package.json Update to the latest mysql package (#476) 2018-08-13 12:29:42 +01:00
README.md update storage nodes info style 2016-03-02 13:27:52 +00:00

node-red-node-mysql

A Node-RED node to read and write to a MySQL database.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-node-mysql

Usage

Allows basic access to a MySQL database.

This node uses the query operation against the configured database. This does allow both INSERTS and DELETES.

By it's very nature it allows SQL injection... so be careful out there...

The msg.topic must hold the query for the database, and the result is returned in msg.payload.

Typically the returned payload will be an array of the result rows.

If nothing is found for the key then null is returned.

The reconnect retry timeout in milliseconds can be changed by adding a line to settings.js

mysqlReconnectTime: 30000,