node-red-nodes/storage/mysql
Dave Conway-Jones e1b02c90dd let mysql report errors to catch node 2015-11-01 15:04:42 +00:00
..
68-mysql.html Add bind capability to sqlite and mysql nodes 2015-01-26 10:57:13 +00:00
68-mysql.js let mysql report errors to catch node 2015-11-01 15:04:42 +00:00
LICENSE Update MySQL node - fa icons, add timezone, make npm installable 2014-07-04 17:26:20 +01:00
README.md Update MySQL node - fa icons, add timezone, make npm installable 2014-07-04 17:26:20 +01:00
package.json let mysql report errors to catch node 2015-11-01 15:04:42 +00:00

README.md

node-red-node-mysql

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

Install

Run the following command in the root directory of your Node-RED install

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,