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

Hello, I think I found an issue with the `supportBigNumbers` connection option. Running this quick test: ```javascript const mysql = require('mysql2/promise'); async function test() { const connection = await mysql.createConnection({uri:...

bug

I am using stream to move a big data set, but it seems there is a cap of ~460 iterations that causes an error i dont understand. This is my...

needs reproduction

This fixes a couple of type errors compared to the underlying code. This is likely a breaking change for some users as it would have required some working around to...

needs investigation
refactor
good first contribution
typescript

```js import mysql from 'mysql2'; const Connection = mysql.Connection; const PoolConnection = mysql.PoolConnection; console.log(PoolConnection.prototype instanceof Connection); ``` [email protected] : true [email protected] : false

needs investigation

This issue was written for `mysql`, but the problem also exists in `mysql2`. The `mysql` repository no long accepts issues from non-contributors... The patch attached is for `mysql`, but I...

When `connection.release()` is called multiple times, there is no logic implemented to properly handle the repeated release of the same connection. Below is the source code for the `releaseConnection` method:...

needs investigation

Despite having both mysql2 and @types/node installed, connection.query does not seem to have the proper types defined, despite being a valid and documented command: ![Image](https://github.com/user-attachments/assets/515f31d1-b39c-4ba5-aeb0-b025427cd145) ![Image](https://github.com/user-attachments/assets/8b9b89dc-5179-4b5c-8733-1dfd125b9782) https://sidorares.github.io/node-mysql2/docs/documentation/typescript-examples Any suggestions?

typescript
needs reproduction

When trying to access the Type of a certain field through the FieldPacket interface I get the following error in vs code: ![image](https://github.com/user-attachments/assets/6697c8e1-4ec7-4bd3-ab09-e93c2a43ff56) I've tried using the type field and...

typescript
needs reproduction

I am running into an issue where I am setting a variable to JSON.stringify() and then inserting that as the value into a JSON column in the database. Here is...

needs reproduction