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

Hello, first, I want to express gratitude for any assistance you can provide. As Prisma isn't compatible with Edge, I aimed to directly integrate mysql2 adapter of lucia into my...

I try this: ```js let [one, two] = await connection.execute('SELECT EXISTS(SELECT 1 FROM bashbase.users WHERE email=?) AS "exists";', [req.body.email]) console.log(one, two) ``` (node:19626) UnhandledPromiseRejectionWarning: TypeError: (intermediate value) is not iterable...

when use Uint8Array , will cause error (the hash column) ``` Error: insert ignore into `v` (`css`, `hash`, `idLi`, `js`) values (151, {"0":114,"1":108,"2":86,"3":55,"4":10,"5":74,"6":187,"7":109,"8":165,"9":203,"10":90,"11":226,"12":165,"13":144,"14":143,"15":33, "16":98,"17":122,"18":116,"19":22,"20":231,"21":192,"22":78,"23":37,"24":13,"25":131,"26":169,"27":153,"28":129,"29":125,"30":136,"31":157}, X'01010101010101010101010101010101010101010101010101010101010 1010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010 10101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101', 38) - Unknown...

bug

All of my queries include dbConnection.release(), however the connections do not get released and once connectionLimit is reached, the execution pauses waiting for an available connection. I've re-worked my code...

currently only `CLIENT_COMPRESS` capability flag is supported ( inflate/deflate - https://www.rfc-editor.org/rfc/rfc1951.html ) when server sends `CLIENT_ZSTD_COMPRESSION_ALGORITHM` (1UL

enhancement

I am using mysql2 driver to connect MySql Database with below config mysql.createPool({ host: process.env.NODE_MYSQL_IP, user: process.env.MYSQL_USER, password: decryptPassword(process.env.NODE_MYSQL_PASSWORD), database: process.env.MYSQL_SCHEMA, waitForConnections: true, connectionLimit: 4, // 20 concurrent connections maxIdle:...

The current examples are like 11 years old. I expect there are better more up to date examples, which also show the mysql2/promise as well. I'm referring to this documentation...

documentation

I would like the console logging in the code below (in connection_config.js) to be removed. Also I would ask that this is never made into a thrown error (as is...

- As reported in #2472 When setting `namedPlaceholders` globally (connection level) to `true`, it's not possible to disable it at the query level. --- To reproduce, just uncomment this test:...

bug

Hi, using typecast `typeCast: function (field, next) { if (field.type === 'JSON') { let c = field.string("utf8");