[{"data":1,"prerenderedAt":45},["ShallowReactive",2],{"integration-node-red-contrib-stackhero-mysql\u002F":3},{"_id":4,"categories":5,"author":9,"description":12,"npmOwners":13,"npmScope":15,"name":4,"ffCertified":16,"downloads":17,"version":19,"updatedAt":20,"maintainers":21,"homepage":24,"bugs":25,"repository":27,"time":30,"lastUpdated":32,"created":31,"license":41,"githubOwner":42,"githubRepo":4,"examples":43,"readme":44},"node-red-contrib-stackhero-mysql",[6,7,8],"catalogue_database","catalogue_storage","catalogue",{"url":10,"name":11},"https:\u002F\u002Fwww.stackhero.io\u002F","Stackhero","A Node-RED node to connect to a MySQL or a MariaDB database, using TLS (SSL) and compatible with \"Caching SHA2 password\" authentication method (MySQL >= 8).",[14],"bacto",null,false,{"week":18},4751,"1.0.6","2025-10-06T14:55:59.247Z",[22],{"name":14,"email":23},"npm@bacto.net","https:\u002F\u002Fgithub.com\u002Fstackhero-io\u002Fnode-red-contrib-stackhero-mysql#readme",{"url":26},"https:\u002F\u002Fgithub.com\u002Fstackhero-io\u002Fnode-red-contrib-stackhero-mysql\u002Fissues",{"url":28,"type":29},"git+https:\u002F\u002Fgithub.com\u002Fstackhero-io\u002Fnode-red-contrib-stackhero-mysql.git","git",{"created":31,"modified":32,"1.0.0":33,"1.0.1":34,"1.0.2":35,"1.0.3":36,"1.0.4":37,"1.0.5":38,"1.0.6":39,"1.0.7":40},"2020-05-11T08:00:10.547Z","2026-11-17T08:06:27.654Z","2020-05-06T16:42:28.363Z","2020-05-11T08:00:10.701Z","2020-05-12T12:32:31.999Z","2020-10-12T15:48:11.980Z","2021-01-25T09:16:25.813Z","2021-01-25T13:14:49.006Z","2025-10-06T14:55:58.990Z","2026-11-17T08:06:27.393Z","AGPL-3.0","stackhero-io",[],"\u003Ch1 id=\"node-red-contrib-stackhero-mysql\">\u003Ca class=\"header-anchor\" href=\"#node-red-contrib-stackhero-mysql\">node-red-contrib-stackhero-mysql\u003C\u002Fa>\u003C\u002Fh1>\n\u003Cp>\u003Ca href=\"https:\u002F\u002Fnodered.org\">Node-RED\u003C\u002Fa> node to read and write to a MySQL or a MariaDB database.\u003C\u002Fp>\n\u003Cp>It uses TLS (SSL) encryption and is compatible with \"Caching SHA2 password\" authentication method (MySQL &gt;= 8).\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Remember: if you like it, please star it! 🥰\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>Official repository: \u003Ca href=\"https:\u002F\u002Fgithub.com\u002Fstackhero-io\u002Fnode-red-contrib-stackhero-mysql\">https:\u002F\u002Fgithub.com\u002Fstackhero-io\u002Fnode-red-contrib-stackhero-mysql\u003C\u002Fa>\u003C\u002Fp>\n\u003Cp>\u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002Fstackhero-io\u002Fnode-red-contrib-stackhero-mysql\u002Fmaster\u002Fassets\u002Fscreenshot.png\" alt=\"Example of use\" \u002F>\u003C\u002Fp>\n\u003Ch2 id=\"sponsors\">\u003Ca class=\"header-anchor\" href=\"#sponsors\">Sponsors\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>\u003Ccode>node-red-contrib-stackhero-mysql\u003C\u002Fcode> is developed by \u003Ca href=\"https:\u002F\u002Fwww.stackhero.io\u002F\">Stackhero\u003C\u002Fa>.\nIf you are looking for powerful managed services, like Node-RED, MySQL or MariaDB, you should seriously consider Stackhero 🤓\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fwww.stackhero.io\u002Fservices\u002FMySQL\">Managed MySQL databases\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fwww.stackhero.io\u002Fservices\u002FMariaDB\">Managed MariaDB databases\u003C\u002Fa>\u003C\u002Fli>\n\u003Cli>\u003Ca href=\"https:\u002F\u002Fwww.stackhero.io\u002Fservices\u002FNode-RED\">Managed Node-RED service\u003C\u002Fa>\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"usage\">\u003Ca class=\"header-anchor\" href=\"#usage\">Usage\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>This node is really simple.\u003C\u002Fp>\n\u003Cp>Put your query in the \u003Ccode>topic\u003C\u002Fcode> variable and, if you have arguments, put them in an array or an object in the \u003Ccode>payload\u003C\u002Fcode> variable.\nYou will get the result in the \u003Ccode>payload\u003C\u002Fcode> output variable.\u003C\u002Fp>\n\u003Cp>Examples of queries:\u003C\u002Fp>\n\u003Ch4 id=\"object-based-insertion-set-with-object\">\u003Ca class=\"header-anchor\" href=\"#object-based-insertion-set-with-object\">Object-based insertion (SET with object)\u003C\u002Fa>\u003C\u002Fh4>\n\u003Cpre>\u003Ccode class=\"language-javascript\">msg.topic = 'INSERT INTO `users` SET ?';\nmsg.payload = [{ name: 'Adrien', age: 42 }];\n\nreturn msg;\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch4 id=\"named-parameters\">\u003Ca class=\"header-anchor\" href=\"#named-parameters\">Named parameters\u003C\u002Fa>\u003C\u002Fh4>\n\u003Cpre>\u003Ccode class=\"language-javascript\">msg.topic = 'INSERT INTO `users` (`name`, `age`) VALUES (:name, :age)';\nmsg.payload = { name: 'Adrien', age: 42 };\n\nreturn msg;\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch4 id=\"positional-parameters\">\u003Ca class=\"header-anchor\" href=\"#positional-parameters\">Positional parameters\u003C\u002Fa>\u003C\u002Fh4>\n\u003Cpre>\u003Ccode class=\"language-javascript\">msg.topic = 'INSERT INTO `users` (`name`, `age`) VALUES (?, ?)';\nmsg.payload = [ 'Adrien', 42 ];\n\nreturn msg;\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch4 id=\"bulk-multi-row-insertion\">\u003Ca class=\"header-anchor\" href=\"#bulk-multi-row-insertion\">Bulk (multi-row) insertion\u003C\u002Fa>\u003C\u002Fh4>\n\u003Cpre>\u003Ccode class=\"language-javascript\">msg.topic = 'INSERT INTO `users` (`name`, `age`) VALUES ?';\nmsg.payload = [[\n  [ 'Adrien', 42 ],\n  [ 'Romain', 12 ]\n]];\n\nreturn msg;\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cblockquote>\n\u003Cp>Avoid SQL injections!!\u003C\u002Fp>\n\u003Cp>Do not NEVER EVER put variables content in \u003Ccode>topic\u003C\u002Fcode> directly!\nAlways use the \u003Ccode>payload\u003C\u002Fcode> variable to pass your arguments.\u003C\u002Fp>\n\u003C\u002Fblockquote>\n\u003Ch2 id=\"troubleshooting\">\u003Ca class=\"header-anchor\" href=\"#troubleshooting\">Troubleshooting\u003C\u002Fa>\u003C\u002Fh2>\n\u003Ch3 id=\"error-connections-using-insecure-transport-are-prohibited-while---require_secure_transporton\">\u003Ca class=\"header-anchor\" href=\"#error-connections-using-insecure-transport-are-prohibited-while---require_secure_transporton\">Error \"Connections using insecure transport are prohibited while --require_secure_transport=ON\"\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>You have to connect using TLS encryption. Simply check the box in this node configuration.\u003C\u002Fp>\n\u003Ch3 id=\"error-er_not_supported_auth_mode-client-does-not-support-authentication-protocol-requested-by-server-consider-upgrading-mysql-client\">\u003Ca class=\"header-anchor\" href=\"#error-er_not_supported_auth_mode-client-does-not-support-authentication-protocol-requested-by-server-consider-upgrading-mysql-client\">Error \"ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client\"\u003C\u002Fa>\u003C\u002Fh3>\n\u003Cp>You are probably using another node than \u003Ccode>node-red-contrib-stackhero-mysql\u003C\u002Fcode> and tryin to connect to a MySQL &gt;= 8 server using \"Caching SHA2 password\" authentication method.\u003C\u002Fp>\n\u003Cp>To resolve that issue, simply use this node \u003Ccode>node-red-contrib-stackhero-mysql\u003C\u002Fcode>.\u003C\u002Fp>\n",1794908291178]