[{"data":1,"prerenderedAt":89},["ShallowReactive",2],{"integration-node-red-node-mysql\u002F":3},{"_id":4,"categories":5,"author":9,"description":13,"npmOwners":14,"npmScope":17,"name":4,"ffCertified":18,"downloads":19,"version":21,"updatedAt":22,"tier":23,"maintainers":24,"homepage":28,"bugs":29,"repository":31,"time":35,"lastUpdated":22,"created":36,"license":84,"githubOwner":85,"githubRepo":86,"examples":87,"readme":88},"node-red-node-mysql",[6,7,8],"catalogue_database","catalogue_storage","catalogue",{"name":10,"email":11,"url":12},"Dave Conway-Jones","dceejay@gmail.com","http:\u002F\u002Fnodered.org","A Node-RED node to read and write to a MySQL database",[15,16],"knolleary","dceejay",null,true,{"week":20},2305,"3.0.3","2026-07-21T19:07:43.943Z","recommended",[25,27],{"name":15,"email":26},"nick.oleary@gmail.com",{"name":16,"email":11},"https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes#readme",{"url":30},"https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes\u002Fissues",{"type":32,"url":33,"directory":34},"git","git+https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes.git","tree\u002Fmaster\u002Fstorage\u002Fmysql",{"created":36,"modified":22,"0.0.3":36,"0.0.4":37,"0.0.5":38,"0.0.6":39,"0.0.7":40,"0.0.8":41,"0.0.9":42,"0.0.10":43,"0.0.11":44,"0.0.12":45,"0.0.14":46,"0.0.15":47,"0.0.16":48,"0.0.17":49,"0.0.18":50,"0.0.19":51,"0.0.20":52,"0.0.21":53,"0.0.22":54,"0.1.0":55,"0.1.1":56,"0.1.2":57,"0.1.3":58,"0.1.4":59,"0.1.5":60,"0.1.6":61,"0.1.7":62,"0.1.8":63,"0.1.9":64,"0.1.10":65,"0.2.0":66,"0.2.1":67,"0.2.2":68,"0.3.0":69,"1.0.0-beta":70,"1.0.0-beta-2":71,"1.0.0-beta-3":72,"1.0.0-beta-4":73,"1.0.0-beta-5":74,"1.0.0":75,"1.0.1":76,"1.0.2":77,"1.0.3":78,"2.0.0":79,"3.0.0":80,"3.0.1":81,"3.0.2":82,"3.0.3":83},"2014-07-04T16:31:42.333Z","2014-12-12T17:17:21.349Z","2015-01-26T10:59:00.671Z","2015-05-29T13:59:06.857Z","2015-11-01T14:53:41.396Z","2016-03-02T13:32:44.903Z","2016-07-20T19:11:46.020Z","2016-09-14T21:38:46.191Z","2016-11-06T20:34:37.406Z","2016-11-27T17:03:17.970Z","2017-02-26T10:17:33.016Z","2017-02-26T10:19:37.503Z","2017-03-17T13:42:13.906Z","2018-08-13T11:30:23.733Z","2019-02-01T22:15:37.813Z","2019-10-16T10:23:32.025Z","2020-03-20T15:09:47.262Z","2020-04-05T10:44:35.670Z","2020-04-05T11:35:24.972Z","2020-04-10T21:56:03.497Z","2020-04-19T10:16:13.446Z","2021-03-13T14:16:26.201Z","2021-03-14T09:04:48.639Z","2021-03-14T17:52:42.042Z","2021-03-21T09:58:24.919Z","2021-03-21T17:31:05.775Z","2021-04-08T16:08:08.313Z","2021-04-23T21:23:28.125Z","2021-05-09T21:02:28.926Z","2021-05-10T07:53:16.677Z","2021-05-18T08:11:49.447Z","2021-06-19T13:48:27.269Z","2021-10-21T14:13:34.532Z","2021-10-27T12:51:59.518Z","2021-11-18T09:37:48.442Z","2021-11-18T11:45:51.720Z","2021-11-20T21:49:11.764Z","2021-11-22T17:36:26.461Z","2021-11-24T09:24:05.466Z","2022-01-05T10:59:57.144Z","2022-02-21T20:10:50.341Z","2022-07-11T13:39:56.881Z","2022-07-22T09:16:50.963Z","2023-12-04T20:33:43.977Z","2025-12-26T18:17:24.841Z","2026-07-17T08:04:24.923Z","2026-07-17T08:16:49.598Z","2026-07-21T19:07:43.797Z","Apache-2.0","node-red","node-red-nodes",[],"\u003Ch1 id=\"node-red-node-mysql\">\u003Ca class=\"header-anchor\" href=\"#node-red-node-mysql\">node-red-node-mysql\u003C\u002Fa>\u003C\u002Fh1>\n\u003Cp>A \u003Ca href=\"http:\u002F\u002Fnodered.org\" target=\"_new\">Node-RED\u003C\u002Fa> node to read and write to a MySQL database.\u003C\u002Fp>\n\u003Ch2 id=\"install\">\u003Ca class=\"header-anchor\" href=\"#install\">Install\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Either use the \u003Ccode>Node-RED Menu - Manage Palette - Install\u003C\u002Fcode>, or run the following command in your Node-RED user directory - typically \u003Ccode>~\u002F.node-red\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cpre>\u003Ccode>npm i node-red-node-mysql\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2 id=\"usage\">\u003Ca class=\"header-anchor\" href=\"#usage\">Usage\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Allows basic access to a MySQL database.\u003C\u002Fp>\n\u003Cp>This node uses the \u003Cstrong>query\u003C\u002Fstrong> operation against the configured database. This does allow both INSERTS and DELETES.\u003C\u002Fp>\n\u003Cp>By its very nature it allows SQL injection... so \u003Cem>be careful out there...\u003C\u002Fem>\u003C\u002Fp>\n\u003Cp>The \u003Ccode>msg.topic\u003C\u002Fcode> must hold the \u003Cem>query\u003C\u002Fem> for the database, and the result is returned in \u003Ccode>msg.payload\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Typically the returned payload will be an array of the result rows.\u003C\u002Fp>\n\u003Cp>If nothing is found for the key then \u003Cem>null\u003C\u002Fem> is returned.\u003C\u002Fp>\n\u003Cp>The reconnect retry timeout in milliseconds can be changed by adding a line to \u003Cstrong>settings.js\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-javascript\">mysqlReconnectTime: 30000,\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>The timezone can be set like GMT, EST5EDT, UTC, etc.\u003C\u002Fp>\n\u003Cp>The charset defaults to the \"old\" Mysql 3 byte UTF. If you need support for emojis etc then use UTF8MB4.\u003C\u002Fp>\n\u003Ch2 id=\"preparing-queries\">\u003Ca class=\"header-anchor\" href=\"#preparing-queries\">Preparing Queries\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cpre>\u003Ccode class=\"language-javascript\">msg.payload=[24, 'example-user'];\nmsg.topic=\"INSERT INTO users (`userid`, `username`) VALUES (?, ?);\"\nreturn msg;\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>with named parameters:\u003C\u002Fp>\n\u003Cpre>\u003Ccode class=\"language-javascript\">msg.payload={}\nmsg.payload.userToChange=42;\nmsg.payload.newUsername=\"example-user\";\nmsg.topic=\"INSERT INTO users (`userid`, `username`) VALUES (:userToChange, :newUsername) ON DUPLICATE KEY UPDATE `username`=:newUsername;\"\nreturn msg;\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2 id=\"documentation\">\u003Ca class=\"header-anchor\" href=\"#documentation\">Documentation\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fwww.npmjs.com\u002Fpackage\u002Fmysql\" target=\"_new\">Documentation\u003C\u002Fa> of the used Node.js package\u003C\u002Fp>\n",1784738654072]