← Winnitude! Search  ·  Reader Mode (2000 ms)
Links: Stay in Reader Retro Site Converter Retro Mode: OFF Original Page ↗
GITHUB · 161 LINKS

GitHub - sidorares/node-mysql2: :zap: fast mysqljs/mysql compatible mysql driver for node.js

Repository navigation

node-mysql2
Public

About

⚡ fast mysqljs/mysql compatible mysql driver for node.js

sidorares.github.io/node-mysql2/

Topics

database-adapter mysql mysql-client node-js

Resources

Readme MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity

Stars

4.4k stars

Watchers

49 watching

Forks

694 forks Report repository
Branches

Tags
Go to Branches page Go to Tags page

Latest commit

 

History


4,350 Commits
View commit history for this file.

Folders and files

Name Name Last commit message Last commit date
.agents .agents    
.claude/ skills .claude/ skills    
.github .github    
.lagune .lagune    
benchmarks benchmarks    
fixtures fixtures    
lib lib    
scripts scripts    
src src    
test test    
tools tools    
typings/ mysql typings/ mysql    
website website    
.cursorrules .cursorrules    
.editorconfig .editorconfig    
.gitattributes .gitattributes    
.gitignore .gitignore    
.npmrc .npmrc    
.nycrc .nycrc    
.prettierignore .prettierignore    
.prettierrc .prettierrc    
.windsurfrules .windsurfrules    
AGENTS.md AGENTS.md    
CLAUDE.md CLAUDE.md    
CODE_OF_CONDUCT.md CODE_OF_CONDUCT.md    
Changelog.md Changelog.md    
Contributing.md Contributing.md    
License License    
README.md README.md    
SECURITY.md SECURITY.md    
biome.json biome.json    
codecov.yml codecov.yml    
deno.json deno.json    
index.d.ts index.d.ts    
index.js index.js    
package-lock.json package-lock.json    
package.json package.json    
poku.config.js poku.config.js    
promise.d.ts promise.d.ts    
promise.js promise.js    
rollup.config.mjs rollup.config.mjs    
skills-lock.json skills-lock.json    
tea.yaml tea.yaml    
tsconfig.json tsconfig.json    

Repository files navigation

MySQL2

English | 简体中文 | Português (BR)

MySQL client for Node.js with focus on performance. Supports prepared statements, non-utf8 encodings, binary log protocol, compression, ssl much more .

Table of Contents

History and Why MySQL2

MySQL2 project is a continuation of MySQL-Native . Protocol parser code was rewritten from scratch and api changed to match popular Node MySQL . MySQL2 team is working together with Node MySQL team to factor out shared code and move it under mysqljs organization.

MySQL2 is mostly API compatible with Node MySQL and supports majority of features. MySQL2 also offers these additional features:

Installation

MySQL2 is free from native bindings and can be installed on Linux, Mac OS or Windows without any issues.

npm install --save mysql2

If you are using TypeScript, you will need to install @types/node.

npm install --save-dev @types/node

For TypeScript documentation and examples, see here .

Documentation

Acknowledgements

Contributing

Want to improve something in MySQL2 ? Please check Contributing.md for detailed instruction on how to get started.

To contribute in MySQL2 Documentation , please visit the Website Contributing Guidelines for detailed instruction on how to get started.

About

⚡ fast mysqljs/mysql compatible mysql driver for node.js

sidorares.github.io/node-mysql2/

Topics

database-adapter mysql mysql-client node-js

Resources

Readme MIT license

Code of conduct

Code of conduct

Contributing

Contributing

Security policy

Security policy Activity

Stars

4.4k stars

Watchers

49 watching

Forks

694 forks Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages