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

For some unknown reason, Metabase fails to return a handshake when the server advertises CLIENT_CONNECT_ATTRS. Attempting to remove CLIENT_CONNECT_ATTRS from a `mysql2` server led me to confirm the following: 1....

The error code emitted for `ER_CLIENT_INTERACTION_TIMEOUT` is "4031" instead of the expected "ER_CLIENT_INTERACTION_TIMEOUT", this fixes that.

When calling execute or query from a Pool returned from createPool, I'm occasionally getting the error "Connection lost: The server closed the connection.". This error looks like it is coming...

I am using [connection pools](https://github.com/sidorares/node-mysql2#using-connection-pools) with [Promise wrapper](https://github.com/sidorares/node-mysql2#using-promise-wrapper) in [Cloud Functions for Firebase](https://firebase.google.com/docs/functions) connecting to a [Google Cloud SQL (for MySQL)](https://cloud.google.com/sql/docs/mysql/) instance. I follow all the [Connecting to Cloud SQL...

I'd like to propose adding a stream based query interface when using the promise based interface, that would act similarly as the [`stream` method](https://github.com/sidorares/node-mysql2/blob/fa47d0b0c46b3f5e79b7adae283bb78575298429/typings/mysql/lib/protocol/sequences/Query.d.ts#L134) that exists on the `Query` interface....

Based on current event exposed, we can hook to "connecttion" -> to know when a new connection is created in the pool "acquire" -> to know when a connection was...

good first contribution
needs rebase

I found that the timezone behavior for `DATETIME` is a little strange, could you help to confirm it? My timezone is +8, this is my test environment. - MySQL: 8.0.30...

Hi there! I'm trying to stream results from an sql select, but when I call `query.start()` it throws the following error: ``` 2023-10-17T00:55:03.668Z cfca73dc-e40f-46f7-bc83-059c4ff1c6d6 ERROR Handler error: Cannot read properties...

As far as I can understand a pool connection when released will at least make it available to any waiting connection. This means it's a persistent connection. Does this perform...

question
feature request