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 am trying to create a MySQL server using `node-mysql2`, but I am getting the following errors: ``` Warning: got packets out of order. Expected 1 but received 28 Warning:...

question

hello, I'm developing a next.js with a mysql database, I'm using planetscale as database server... here a small example of code: ` connection = await mysql.createConnection(process.env.MYSQL_URL); await connection.connect(); [any kind...

This fixes a missing member of the promise-wrapped Pool object to avoid leak connections whenever you manually call PromisePool.getConnection()

If for example, a query with an undefined value is executed on a pool connection, this throws an uncatchable exception that kills the node process. This is because the exception...

high-priority

Without this fix node creates an uncatchable exception like ``` TypeError: Bind parameters must not contain undefined. To pass SQL NULL specify JS null at /var/repo/aerworx/api/node_modules/mysql2/lib/connection.js:592:17 at Array.forEach () at...

when passing undifiend to pool.execute throws error and node crashes connection.execute works fine and execption is handled ``` import mysql = require('mysql2'); async function x1() { let pool = await...

I'm running MySQL8 in InnoDB Cluster with 3 nodes. MySQLRouter is used to connect to the cluster. When a connection is closed due to `wait_timeout` in MySQL, the pool throws...

needs investigation

This bug is unique to the mysql2 npm package - it does not happen with the mysql npm package. I have a db schema which declares a column as a...

according to the commit: https://github.com/sidorares/node-mysql2/commit/6b59a3604a53a7f85c8392fcb9577aabbd1eb4df keepalive is now always on. It cannot be disabled. The inline-documentation erroneously says it is off by default. I have a problem with this in...