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

using mysql2 with AWS nodejs lambdas and AWS RDS. As of March 2024, our RDS instance was still on the 2019 certificate bundle. Versions of mysql2

help wanted

We have millions of queries on this DB per day, but about once per day, we get a deadlock error with a query where we're not using locks. The query:...

When upgrading from `mysql` to `mysql2`, to support authentication updates on our mysql server(s), I found that my code around streaming, particularly when streams contain multiple resultsets, wasn't working properly...

mysqljs-mysql-incompatibilities

> This PR is a debug/fix of #2496, preserving all its commits. Testing locally: ```bash seq 1000 | xargs -I {} sh -c 'FILTER=test-multi-result-streaming npm run test || echo "Failure...

mysqljs-mysql-incompatibilities

I believe there is a conflict version with the lru-cache package. After some digging noticed that lru-cache v8.0.0 is the only version that exports the class as "default" and that's...

After introduction of https://github.com/sidorares/node-mysql2/pull/2043, our application seems to be getting the following error (seemingly at random): ``` "stack": "Error: read ECONNRESET\n at TCP.onStreamRead (node:internal/stream_base_commons:217:20)\n at runInContextCb (/usr/src/app/node_modules/newrelic/lib/shim/shim.js:1168:22)\n at AsyncLocalStorage.run (node:async_hooks:335:14)\n...

This PR restructures PromisePool's `query` and `execute` so they catch synchronous exceptions. I don't think `Connection.query` actually throws synchronous exceptions, so we could remove the changes to support `PromisePool.query`, but...

Hi, i've found a weird behaviour, when querying a table and converting it to a JSON_TABLE, if a textual row inside of it contain a \\n, it will be *re*...

When I tried to create connection by raw connection string ``` ... mysql.createConnection(`mysql://avnadmin:${password}@mysql-davidkhala.d.aivencloud.com:22013/defaultdb?ssl-mode=REQUIRED`) ``` The warning prompts like ``` Ignoring invalid configuration option passed to Connection: ssl-mode. This is currently...

The links to the documentation in the README lead to a 404