node-mysql2
node-mysql2 copied to clipboard
:zap: fast mysqljs/mysql compatible mysql driver for node.js
Currently the `ssl` config option requires a string of the contents of the certificate files. My goal is to use environment variables to establish my database connection (through TypeORM, see...
Here is my DB Connection ``` var mysql = require('mysql2'), // mysql2 // MYSQL Connection Info: var db_config = { connectionLimit: 10, waitForConnections: true, host: 'a.server.our.in.the.cloud.us-west-2.rds.amazonaws.com', port: '3306', user: 'XXXXXXXX',...
Hi, looks like using `??` is working as placeholders for identifiers as in [mysql](https://www.npmjs.com/package/mysql#escaping-query-identifiers), but I'm missing some information on the documentation about that. Or is it just something new...
It seems like the current version, 3.5.1 is unable to connect successfully to RDS instances using the `rds-ca-rsa2048-g1` certificate authority. Example code: ``` // get the client const mysql =...
mysqljs/mysql add restoreNodeTimeout option when call mysql.createPoolCluster has mysql2 plan to support restoreNodeTimeout ?
@testn we did have some initial discussion when the original change was made in #1402 but wanted to review and benchmark again. I think the fix should be simple, if...
ECONNRESET
I get these errors sometimes. Randomly. ``` Error: read ECONNRESET at exports._errnoException (util.js:742:11) at TCP.onread (net.js:535:26) ``` and ``` Error: write ECONNRESET at exports._errnoException (util.js:742:11) at Object.afterWrite (net.js:749:14) ``` I...
when i import this statment on the app.js my app crash. `const mysql = require('mysql2');` the Package.json ``` { "name": "testApp", "version": "1.0.0", "private": true, "scripts": { "start": "node ./app.js",...
Version 3.2.1 is now incompatible with node < 16.14 because lru-cache (https://github.com/isaacs/node-lru-cache/blob/42fc1a3ac57604a1d26ead49ce87f4b3518505e1/package.json) requires node >= 16.14.
Previously, in our solution, we closed a connection on every SQL statement or SQL error and worked without connection pool. For now, we are trying to migrate to the connection...