node-mysql2 icon indicating copy to clipboard operation
node-mysql2 copied to clipboard

:zap: fast mysqljs/mysql compatible mysql driver for node.js

Results 356 node-mysql2 issues
Sort by recently updated
recently updated
newest added

i use mysql2 like this: require('dotenv').config({path: __dirname + '/.env'}); const mysql = require('mysql2/promise'); module.exports = mysql.createPool({ "host": process.env.DB_HOST, "user": process.env.DB_USER, "port": parseInt(process.env.NODE_ENV === 'production' ? process.env.DB_PORT_PROD : process.env.DB_PORT_DEV), "password": process.env.DB_PASSWORD,...

typescript
needs reproduction

This error occurs when you call **getConnection** method on **PoolNamespace** instance. The **lib/pool_cluster.js** file requires a **cb** parameter (1 argument) but it's undefined because **PromisePoolCluster.getConnection** in **promise.js** sends three (3)...

bug

I struggled a bit today connecting to an Azure mysql server. I wanted to use TLS, but didn't want to supply certificates manually. (counting on the host's OS to already...

documentation

I saw quite a few tickets concerning this error here already, but none are reporting it for a connection close. I updated a setup using Percona server and mysql2, which...

needs reproduction

I would like to understand how connection lifetime is handled in the MySQL2 connection pool. Are connections "eternal" by default, or is there an automatic mechanism that eventually closes them?...

question

Yes, it's an old encoding that mysql is phasing out. However, some DBs out there still use it and this library shouldn't crash in unexpected ways. Some servers (like ours)...

Bumps [@easyops-cn/docusaurus-search-local](https://github.com/easyops-cn/docusaurus-search-local/tree/HEAD/packages/docusaurus-search-local) from 0.51.0 to 0.51.1. Release notes Sourced from @​easyops-cn/docusaurus-search-local's releases. v0.51.1 0.51.1 (2025-06-19) Bug Fixes fix active menu item matching for categories with collapsible disabled (725bbb1) fix active...

dependencies
javascript

Bumps [lucide-react](https://github.com/lucide-icons/lucide/tree/HEAD/packages/lucide-react) from 0.515.0 to 0.518.0. Release notes Sourced from lucide-react's releases. Version 0.518.0 What's Changed fix(icons): updated egg and egg-off icons by @​jamiemlaw in lucide-icons/lucide#3299 fix(icons): renamed *-help and...

dependencies
javascript

Example given in documentation (https://sidorares.github.io/node-mysql2/docs/documentation/extras#connecting-using-custom-stream) no longer works: ```js const mysql = require('mysql2'); const SocksConnection = require('socksjs'); const pool = mysql.createPool({ database: 'test', user: 'foo', password: 'bar', stream: function (cb)...

Bumps [@biomejs/biome](https://github.com/biomejs/biome/tree/HEAD/packages/@biomejs/biome) from 1.9.4 to 2.0.0. Release notes Sourced from @​biomejs/biome's releases. Biome CLI v2.0.0 Major Changes Biome now resolves globs and paths from the configuration. Before, paths and globs...

dependencies
javascript