node-mysql2
node-mysql2 copied to clipboard
:zap: fast mysqljs/mysql compatible mysql driver for node.js
Fixes #1885, Fixes #1953, Fixes #1965, Fixes #1970, Fixes #2001, Fixes #2537, Fixes #2619, Fixes #2752. --- ### A quick explanation > [!IMPORTANT] > > This _PR_ replaces the **lru-cache**....
I have a REST API and for an INSERT handler I have a custom (45000) error in MySQL. Node throws the stack in the console but I cannot capture that...
when i call await execSQLFC(sql); then the problem occurs. if i add await connection.query(`USE ${process.env.SQL_FCDB}`); it will working. my configure (something wrong?): ****DBConfig.js ```js const mysql = require('mysql2/promise') const poolCluster...
In the JS ecosystem for database drivers, this package is one of the more widely used. Together with the Deno Standard Library team, we have been working on creating a...
## Problem node-mysql2 seems to swap x and y values of a geographic Point stored in mysql8 when it is retrieved through node-mysql2 without special parsing. ## Repository that demonstrates...
How can I measure the time a query spends waiting in the connection pool queue when using the waitForConnections: true option in a connection pool? I'm looking for to somehow...
The error is coming very frequently even if all config is correctly set and ping method is in place. configuration used as below ```js const dbPool = mySql.createPool(Object.assign({}, defaultDBConfig, {...
To reproduce.. just pass null or undefined insted of sqlquery in execute method. The error returned by code is cant add new command when connection is closed.. I doubt if...
I'm using mysql2 with typeorm and nestjs to connect to an AWS Aurora Serverless v2 MySQL database. The connection is configured through a cluster FQDN and there's a dedicated FQDN...
Hello, I'm using mysql2 with a promise pool setup as follows: ```javascript const pool = mysql.createPool({ port: parseInt(mysqlPort, 10), waitForConnections: true, connectionLimit: 5, maxIdle: 5, idleTimeout: 60000, queueLimit: 0, host:...