Socket
Socket
Sign inDemoInstall

node-red-contrib-stackhero-mysql

Package Overview
Dependencies
12
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-red-contrib-stackhero-mysql

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).


Version published
Weekly downloads
630
decreased by-15.66%
Maintainers
1
Install size
1.27 MB
Created
Weekly downloads
 

Changelog

Source

1.0.5 (2021-01-25)

  • 🐞 Fix an issue where msg.payload wasn't checked well (see #3)
  • 🐞 Fix an issue where connections weren't well handled (see #5)

Readme

Source

node-red-contrib-stackhero-mysql

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

It uses TLS (SSL) encryption and is compatible with "Caching SHA2 password" authentication method (MySQL >= 8).

Remember: if you like it, please star it! 🥰

Official repository: https://github.com/stackhero-io/node-red-contrib-stackhero-mysql

Example of use

Sponsors

node-red-contrib-stackhero-mysql is developed by Stackhero. If you are looking for powerful managed services, like Node-RED, MySQL or MariaDB, you should seriously consider Stackhero 🤓

Usage

This node is really simple.

Put your query in the topic variable and, if you have arguments, put them in an object in the payload variable. You will get the result in the payload output variable.

Example:

msg.topic = 'SELECT * FROM `users` WHERE `name` = :name AND `age` > :age;';
msg.payload = { name: 'Adrien', age: 30 };
return msg;

Avoid SQL injections!!

Do not NEVER EVER put variables content in topic directly! Always use the payload variable to pass your arguments.

Troubleshooting

Error "Connections using insecure transport are prohibited while --require_secure_transport=ON"

You have to connect using TLS encryption. Simply check the box in this node configuration.

Error "ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client"

You are probably using another node than node-red-contrib-stackhero-mysql and tryin to connect to a MySQL >= 8 server using "Caching SHA2 password" authentication method.

To resolve that issue, simply use this node node-red-contrib-stackhero-mysql.

Keywords

FAQs

Last updated on 25 Jan 2021

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc