{"id":13402247,"url":"https://github.com/sidorares/node-mysql2","last_synced_at":"2026-03-05T17:38:21.002Z","repository":{"id":8076905,"uuid":"9489902","full_name":"sidorares/node-mysql2","owner":"sidorares","description":":zap: fast mysqljs/mysql compatible mysql driver for node.js","archived":false,"fork":false,"pushed_at":"2025-09-08T08:33:01.000Z","size":141262,"stargazers_count":4279,"open_issues_count":485,"forks_count":641,"subscribers_count":55,"default_branch":"master","last_synced_at":"2025-09-08T10:28:19.693Z","etag":null,"topics":["database-adapter","mysql","mysql-client","node-js"],"latest_commit_sha":null,"homepage":"https://sidorares.github.io/node-mysql2/","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/sidorares.png","metadata":{"files":{"readme":"README.md","changelog":"Changelog.md","contributing":"Contributing.md","funding":".github/FUNDING.yml","license":"License","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null},"funding":{"github":["sidorares"]}},"created_at":"2013-04-17T05:23:59.000Z","updated_at":"2025-09-08T08:32:48.000Z","dependencies_parsed_at":"2023-12-20T14:26:10.071Z","dependency_job_id":"9b443845-8c1c-4017-b839-f8a2328a1817","html_url":"https://github.com/sidorares/node-mysql2","commit_stats":{"total_commits":2588,"total_committers":244,"mean_commits":10.60655737704918,"dds":0.7422720247295209,"last_synced_commit":"9ba3706d4726fd951b83dfcec2280705875cbae2"},"previous_names":[],"tags_count":159,"template":false,"template_full_name":null,"purl":"pkg:github/sidorares/node-mysql2","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidorares%2Fnode-mysql2","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidorares%2Fnode-mysql2/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidorares%2Fnode-mysql2/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidorares%2Fnode-mysql2/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/sidorares","download_url":"https://codeload.github.com/sidorares/node-mysql2/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/sidorares%2Fnode-mysql2/sbom","scorecard":{"id":593328,"data":{"date":"2025-08-11","repo":{"name":"github.com/sidorares/node-mysql2","commit":"9ebd75f81bf4138e473d28aa7e8e227f8c9d92ea"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":6.7,"checks":[{"name":"Security-Policy","score":10,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Info: Found linked content: SECURITY.md:1","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"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":"Code-Review","score":10,"reason":"all changesets reviewed","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":"Maintained","score":10,"reason":"30 commit(s) and 6 issue activity found in the last 90 days -- score normalized to 10","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"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":"Dangerous-Workflow","score":10,"reason":"no dangerous workflow patterns detected","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":"Token-Permissions","score":0,"reason":"detected GitHub workflow tokens with excessive permissions","details":["Info: jobLevel 'actions' permission set to 'read': .github/workflows/codeql-analysis.yml:28","Info: jobLevel 'contents' permission set to 'read': .github/workflows/codeql-analysis.yml:29","Warn: no topLevel permission defined: .github/workflows/benchmark.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/canary.yml:10","Warn: no topLevel permission defined: .github/workflows/ci-coverage.yml:1","Warn: no topLevel permission defined: .github/workflows/ci-linux.yml:1","Warn: no topLevel permission defined: .github/workflows/ci-mysql.yml:1","Warn: no topLevel permission defined: .github/workflows/ci-osx.yml:1","Warn: no topLevel permission defined: .github/workflows/ci-tsc-build.yml:1","Warn: no topLevel permission defined: .github/workflows/ci-website.yml:1","Warn: no topLevel permission defined: .github/workflows/ci-windows.yml:1","Warn: no topLevel permission defined: .github/workflows/codeql-analysis.yml:1","Warn: no topLevel permission defined: .github/workflows/gh-pages.yml:1","Warn: no topLevel permission defined: .github/workflows/lint.yml:1","Warn: topLevel 'contents' permission set to 'write': .github/workflows/release.yml:8","Info: no jobLevel write permissions found"],"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":"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":"Pinned-Dependencies","score":4,"reason":"dependency not pinned by hash detected -- score normalized to 4","details":["Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/benchmark.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/benchmark.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/benchmark.yml:34: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/benchmark.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/benchmark.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/benchmark.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/benchmark.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/benchmark.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/benchmark.yml:61: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/benchmark.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/canary.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/canary.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/canary.yml:51: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/canary.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/canary.yml:58: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/canary.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-coverage.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-coverage.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-coverage.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-coverage.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-coverage.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-coverage.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-coverage.yml:64: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-coverage.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:141: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:146: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:151: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:155: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:199: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:204: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:209: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:213: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:35: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:47: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:81: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:86: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:91: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-linux.yml:95: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-linux.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-mysql.yml:48: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-mysql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-mysql.yml:55: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-mysql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-mysql.yml:60: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-mysql.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-osx.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-osx.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-osx.yml:39: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-osx.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-osx.yml:44: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-osx.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-tsc-build.yml:20: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-tsc-build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-tsc-build.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-tsc-build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-tsc-build.yml:28: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-tsc-build.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-website.yml:13: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-website.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-website.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-website.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-website.yml:21: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-website.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-windows.yml:29: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-windows.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/ci-windows.yml:31: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-windows.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/ci-windows.yml:36: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/ci-windows.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:46: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:57: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/codeql-analysis.yml:71: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/codeql-analysis.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/gh-pages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/gh-pages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/gh-pages.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/gh-pages.yml:42: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/gh-pages.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:16: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:18: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/lint.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/lint.yml:23: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/lint.yml/master?enable=pin","Warn: third-party GitHubAction not pinned by hash: .github/workflows/release.yml:15: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:22: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:25: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/release.yml/master?enable=pin","Warn: GitHub-owned GitHubAction not pinned by hash: .github/workflows/release.yml:32: update your workflow using https://app.stepsecurity.io/secureworkflow/sidorares/node-mysql2/release.yml/master?enable=pin","Warn: npmCommand not pinned by hash: .github/workflows/lint.yml:31","Info:   0 out of  49 GitHub-owned GitHubAction dependencies pinned","Info:   0 out of   8 third-party GitHubAction dependencies pinned","Info:  13 out of  14 npmCommand dependencies pinned"],"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":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: License:0","Info: FSF or OSI recognized license: MIT License: License:0"],"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":"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"}},{"name":"Packaging","score":10,"reason":"packaging workflow detected","details":["Info: Project packages its releases by way of GitHub Actions.: .github/workflows/canary.yml:15"],"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":"SAST","score":9,"reason":"SAST tool detected but not run on all commits","details":["Info: SAST configuration detected: CodeQL","Warn: 29 commits out of 30 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":7,"reason":"3 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: GHSA-v6h2-p8h4-qcjw","Warn: Project is vulnerable to: GHSA-4v9v-hfq4-rm2v","Warn: Project is vulnerable to: GHSA-9jgg-88mc-972h"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-20T22:30:58.081Z","repository_id":8076905,"created_at":"2025-08-20T22:30:58.082Z","updated_at":"2025-08-20T22:30:58.082Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274358656,"owners_count":25270680,"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-09-09T02:00:10.223Z","response_time":80,"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":["database-adapter","mysql","mysql-client","node-js"],"created_at":"2024-07-30T19:01:13.490Z","updated_at":"2026-03-05T17:38:20.940Z","avatar_url":"https://github.com/sidorares.png","language":"JavaScript","readme":"[npm-image]: https://img.shields.io/npm/v/mysql2.svg\n[npm-url]: https://npmjs.com/package/mysql2\n[node-version-image]: https://img.shields.io/node/v/mysql2.svg\n[node-version-url]: https://nodejs.org/en/download\n[downloads-image]: https://img.shields.io/npm/dm/mysql2.svg\n[downloads-url]: https://npmjs.com/package/mysql2\n[license-url]: https://github.com/sidorares/node-mysql2/blob/master/License\n[license-image]: https://img.shields.io/npm/l/mysql2.svg?maxAge=2592000\n[node-mysql]: https://github.com/mysqljs/mysql\n[mysqljs]: https://github.com/mysqljs\n[mysql-native]: https://github.com/sidorares/nodejs-mysql-native\n[sidorares]: https://github.com/sidorares\n[TooTallNate]: https://gist.github.com/TooTallNate\n[starttls.js]: https://gist.github.com/TooTallNate/848444\n[node-mariasql]: https://github.com/mscdex/node-mariasql\n[contributors]: https://github.com/sidorares/node-mysql2/graphs/contributors\n[contributing]: https://github.com/sidorares/node-mysql2/blob/master/Contributing.md\n[docs-base]: https://sidorares.github.io/node-mysql2/docs\n[docs-base-zh-CN]: https://sidorares.github.io/node-mysql2/zh-CN/docs\n[docs-base-pt-BR]: https://sidorares.github.io/node-mysql2/pt-BR/docs\n[docs-prepared-statements]: https://sidorares.github.io/node-mysql2/docs/documentation/prepared-statements\n[docs-mysql-server]: https://sidorares.github.io/node-mysql2/docs/documentation/mysql-server\n[docs-promise-wrapper]: https://sidorares.github.io/node-mysql2/docs/documentation/promise-wrapper\n[docs-authentication-switch]: https://sidorares.github.io/node-mysql2/docs/documentation/authentication-switch\n[docs-streams]: https://sidorares.github.io/node-mysql2/docs/documentation/extras\n[docs-typescript-docs]: https://sidorares.github.io/node-mysql2/docs/documentation/typescript-examples\n[docs-qs-pooling]: https://sidorares.github.io/node-mysql2/docs#using-connection-pools\n[docs-qs-first-query]: https://sidorares.github.io/node-mysql2/docs#first-query\n[docs-qs-using-prepared-statements]: https://sidorares.github.io/node-mysql2/docs#using-prepared-statements\n[docs-examples]: https://sidorares.github.io/node-mysql2/docs/examples\n[docs-faq]: https://sidorares.github.io/node-mysql2/docs/faq\n[docs-documentation]: https://sidorares.github.io/node-mysql2/docs/documentation\n[docs-contributing]: https://sidorares.github.io/node-mysql2/docs/contributing/website\n[coverage]: https://img.shields.io/codecov/c/github/sidorares/node-mysql2\n[coverage-url]: https://app.codecov.io/github/sidorares/node-mysql2\n[ci-url]: https://github.com/sidorares/node-mysql2/actions/workflows/ci-coverage.yml?query=branch%3Amaster\n[ci-image]: https://img.shields.io/github/actions/workflow/status/sidorares/node-mysql2/ci-coverage.yml?event=push\u0026style=flat\u0026label=CI\u0026branch=master\n\n# MySQL2\n\n[![NPM Version][npm-image]][npm-url]\n[![NPM Downloads][downloads-image]][downloads-url]\n[![Node.js Version][node-version-image]][node-version-url]\n[![GitHub Workflow Status (with event)][ci-image]][ci-url]\n[![Codecov][coverage]][coverage-url]\n[![License][license-image]][license-url]\n\n[English][docs-base] | [简体中文][docs-base-zh-CN] | [Português (BR)][docs-base-pt-BR]\n\n\u003e MySQL client for Node.js with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression, ssl [much more][docs-documentation].\n\n**Table of Contents**\n\n- [History and Why MySQL2](#history-and-why-mysql2)\n- [Installation](#installation)\n- [Documentation](#documentation)\n- [Acknowledgements](#acknowledgements)\n- [Contributing](#contributing)\n\n## History and Why MySQL2\n\nMySQL2 project is a continuation of [MySQL-Native][mysql-native]. Protocol parser code was rewritten from scratch and api changed to match popular [Node MySQL][node-mysql]. MySQL2 team is working together with [Node MySQL][node-mysql] team to factor out shared code and move it under [mysqljs][mysqljs] organization.\n\nMySQL2 is mostly API compatible with [Node MySQL][node-mysql] and supports majority of features. MySQL2 also offers these additional features:\n\n- Faster / Better Performance\n- [Prepared Statements][docs-prepared-statements]\n- MySQL Binary Log Protocol\n- [MySQL Server][docs-mysql-server]\n- Extended support for Encoding and Collation\n- [Promise Wrapper][docs-promise-wrapper]\n- Compression\n- SSL and [Authentication Switch][docs-authentication-switch]\n- [Custom Streams][docs-streams]\n- [Pooling][docs-qs-pooling]\n\n## Installation\n\nMySQL2 is free from native bindings and can be installed on Linux, Mac OS or Windows without any issues.\n\n```bash\nnpm install --save mysql2\n```\n\nIf you are using TypeScript, you will need to install `@types/node`.\n\n```bash\nnpm install --save-dev @types/node\n```\n\n\u003e For TypeScript documentation and examples, see [here][docs-typescript-docs].\n\n## Documentation\n\n- [Quickstart][docs-base]\n  - [First Query][docs-qs-first-query], [Using Prepared Statements][docs-qs-using-prepared-statements], [Using Connection Pools][docs-qs-pooling] and more.\n- [Documentation][docs-documentation]\n- [Examples][docs-examples]\n- [FAQ][docs-faq]\n\n## Acknowledgements\n\n- Internal protocol is written by [@sidorares][sidorares] [MySQL-Native][mysql-native].\n- Constants, SQL parameters interpolation, Pooling, `ConnectionConfig` class taken from [Node MySQL][node-mysql].\n- SSL upgrade code based on [@TooTallNate][TooTallNate] [code][starttls.js].\n- Secure connection / compressed connection api flags compatible to [MariaSQL][node-mariasql] client.\n- [Contributors][contributors].\n\n## Contributing\n\nWant to improve something in **MySQL2**?\nPlease check [Contributing.md][contributing] for detailed instruction on how to get started.\n\nTo contribute in **MySQL2 Documentation**, please visit the [Website Contributing Guidelines][docs-contributing] for detailed instruction on how to get started.\n","funding_links":["https://github.com/sponsors/sidorares"],"categories":["JavaScript","Repository","Drivers","Libraries and Clients","TypeScript"],"sub_categories":["Database","JavaScript / TypeScript"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidorares%2Fnode-mysql2","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsidorares%2Fnode-mysql2","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsidorares%2Fnode-mysql2/lists"}