{"id":13799283,"url":"https://github.com/stackhero-io/node-red-contrib-stackhero-mysql","last_synced_at":"2025-10-08T21:56:45.342Z","repository":{"id":54851050,"uuid":"262975533","full_name":"stackhero-io/node-red-contrib-stackhero-mysql","owner":"stackhero-io","description":"Node-RED node to read and write to a MySQL or a MariaDB database. Compatible with TLS (SSL) and \"Caching SHA2 password\" authentication method.","archived":false,"fork":false,"pushed_at":"2025-10-06T15:07:04.000Z","size":57,"stargazers_count":19,"open_issues_count":1,"forks_count":8,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-06T15:58:14.491Z","etag":null,"topics":["mariadb","mysql","node-red","node-red-contrib","stackhero"],"latest_commit_sha":null,"homepage":null,"language":"HTML","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/stackhero-io.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2020-05-11T07:51:37.000Z","updated_at":"2025-10-06T14:51:05.000Z","dependencies_parsed_at":"2024-06-21T15:19:37.804Z","dependency_job_id":"a976539d-6efa-4df1-b07d-c5629df588fb","html_url":"https://github.com/stackhero-io/node-red-contrib-stackhero-mysql","commit_stats":{"total_commits":13,"total_committers":1,"mean_commits":13.0,"dds":0.0,"last_synced_commit":"daca6fa49608d0f2a38853054c6add324d8fc87a"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/stackhero-io/node-red-contrib-stackhero-mysql","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhero-io%2Fnode-red-contrib-stackhero-mysql","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhero-io%2Fnode-red-contrib-stackhero-mysql/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhero-io%2Fnode-red-contrib-stackhero-mysql/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhero-io%2Fnode-red-contrib-stackhero-mysql/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stackhero-io","download_url":"https://codeload.github.com/stackhero-io/node-red-contrib-stackhero-mysql/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stackhero-io%2Fnode-red-contrib-stackhero-mysql/sbom","scorecard":{"id":845402,"data":{"date":"2025-08-11","repo":{"name":"github.com/stackhero-io/node-red-contrib-stackhero-mysql","commit":"daca6fa49608d0f2a38853054c6add324d8fc87a"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":2.6,"checks":[{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 0/14 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"SAST","score":0,"reason":"no SAST tool detected","details":["Warn: no pull requests merged into dev branch"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"License","score":0,"reason":"license file not detected","details":["Warn: project does not have a license file"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}}]},"last_synced_at":"2025-08-23T21:19:00.772Z","repository_id":54851050,"created_at":"2025-08-23T21:19:00.773Z","updated_at":"2025-08-23T21:19:00.773Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279000687,"owners_count":26082837,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-08T02:00:06.501Z","response_time":56,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["mariadb","mysql","node-red","node-red-contrib","stackhero"],"created_at":"2024-08-04T00:01:00.696Z","updated_at":"2025-10-08T21:56:45.337Z","avatar_url":"https://github.com/stackhero-io.png","language":"HTML","funding_links":[],"categories":["Nodes"],"sub_categories":["Database"],"readme":"# node-red-contrib-stackhero-mysql\n\n[Node-RED](https://nodered.org) node to read and write to a MySQL or a MariaDB database.\n\nIt uses TLS (SSL) encryption and is compatible with \"Caching SHA2 password\" authentication method (MySQL \u003e= 8).\n\n**Remember: if you like it, please star it! 🥰**\n\nOfficial repository: [https://github.com/stackhero-io/node-red-contrib-stackhero-mysql](https://github.com/stackhero-io/node-red-contrib-stackhero-mysql)\n\n![Example of use](https://raw.githubusercontent.com/stackhero-io/node-red-contrib-stackhero-mysql/master/assets/screenshot.png)\n\n\n## Sponsors\n\n`node-red-contrib-stackhero-mysql` is developed by [Stackhero](https://www.stackhero.io/).\nIf you are looking for powerful managed services, like Node-RED, MySQL or MariaDB, you should seriously consider Stackhero 🤓\n\n- [Managed MySQL databases](https://www.stackhero.io/services/MySQL)\n- [Managed MariaDB databases](https://www.stackhero.io/services/MariaDB)\n- [Managed Node-RED service](https://www.stackhero.io/services/Node-RED)\n\n\n## Usage\n\nThis node is really simple.\n\nPut your query in the `topic` variable and, if you have arguments, put them in an array or an object in the `payload` variable.\nYou will get the result in the `payload` output variable.\n\nExamples of queries:\n\n\n#### Object-based insertion (SET with object)\n\n```javascript\nmsg.topic = 'INSERT INTO `users` SET ?';\nmsg.payload = [{ name: 'Adrien', age: 42 }];\n\nreturn msg;\n```\n\n\n#### Named parameters\n\n```javascript\nmsg.topic = 'INSERT INTO `users` (`name`, `age`) VALUES (:name, :age)';\nmsg.payload = { name: 'Adrien', age: 42 };\n\nreturn msg;\n```\n\n\n#### Positional parameters\n\n```javascript\nmsg.topic = 'INSERT INTO `users` (`name`, `age`) VALUES (?, ?)';\nmsg.payload = [ 'Adrien', 42 ];\n\nreturn msg;\n```\n\n\n#### Bulk (multi-row) insertion\n\n```javascript\nmsg.topic = 'INSERT INTO `users` (`name`, `age`) VALUES ?';\nmsg.payload = [[\n  [ 'Adrien', 42 ],\n  [ 'Romain', 12 ]\n]];\n\nreturn msg;\n```\n\n\n\u003e Avoid SQL injections!!\n\u003e\n\u003e Do not NEVER EVER put variables content in `topic` directly!\n\u003e Always use the `payload` variable to pass your arguments.\n\n\n## Troubleshooting\n\n### Error \"Connections using insecure transport are prohibited while --require_secure_transport=ON\"\n\nYou have to connect using TLS encryption. Simply check the box in this node configuration.\n\n\n### Error \"ER_NOT_SUPPORTED_AUTH_MODE: Client does not support authentication protocol requested by server; consider upgrading MySQL client\"\n\nYou are probably using another node than `node-red-contrib-stackhero-mysql` and tryin to connect to a MySQL \u003e= 8 server using \"Caching SHA2 password\" authentication method.\n\nTo resolve that issue, simply use this node `node-red-contrib-stackhero-mysql`.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackhero-io%2Fnode-red-contrib-stackhero-mysql","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstackhero-io%2Fnode-red-contrib-stackhero-mysql","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstackhero-io%2Fnode-red-contrib-stackhero-mysql/lists"}