node-mysql2
node-mysql2 copied to clipboard
:zap: fast mysqljs/mysql compatible mysql driver for node.js
- Conformed to the way typings are being added currently in the project - Fixed an issue importing `PrepareStatementInfo` (while we're at it)
add promise wrapper missing typings and simplify code. fix [ #1184](https://github.com/sidorares/node-mysql2/issues/1184) #804
I have a service that has been running in production for a month with no issues. Last evening, the service failed after all queries using `.execute` were throwing this error....
Adding upon @rathboma's changes to implement `mysql_clear_password` auth plugin
Hi Team, I am using mysql2 package with expressjs this is my code ```js app.post('/deleteNotPaid',(req, res)=>{ const sno=parseInt(req.body.sno); db.query("DELETE FROM notpaid WHERE Sno=?",sno,(err,result)=>{ if(err){ console.log(err) }else{ res.send("Deleted") } }); ```...
It seems that this problem is related to the original mysql2. I think it's really important. 🤦🏼♂️ https://github.com/sequelize/sequelize/issues/13724
sometime my server is crashed and down (can't connect SSH, need restart ec2 instance) what's wrong my code ### PM2 Log ``` 2022-07-20T02:16:06: GET /article/1537 - - ms - -...
~Snip stack: ``` at Packet.readLengthCodedNumberExt (/node_modules/mysql2/lib/packets/packet.js:207:11) at Packet.readLengthCodedNumber (/node_modules/mysql2/lib/packets/packet.js:157:15) at Packet.parseLengthCodedInt (/node_modules/mysql2/lib/packets/packet.js:668:29) ``` I can't tell exactly what the problem is, but it seems like there's no bounds check on...
Getting a random exception thrown between mysql2 and a MySQL 8 (8.0.23-0ubuntu0.20.04.1) database (from Node 12): ``` service_1 | Trace service_1 | at Packet.readLengthCodedNumberExt (/data/node_modules/mysql2/lib/packets/packet.js:226:13) service_1 | at Packet.readLengthCodedNumber (/data/node_modules/mysql2/lib/packets/packet.js:188:17)...
So I was looking at trying to fix the implementation of BIT as a Temporary fix till the new RFC system comes in however upon testing and reading, I remember...