node-mysql2
node-mysql2 copied to clipboard
:zap: fast mysqljs/mysql compatible mysql driver for node.js
For some reason the callback on connection.query() doesn't execute. I'm trying to execute a query in a stream: ```js // This DOES execute connection.query("SELECT * FROM ExampleTable;") .on("error", (err) =>...
Erro
today i got this erro after using mysql2 4 mons: Error: connect ETIMEDOUT Error: connect ETIMEDOUT at PromisePool.query (/home/container/node_modules/mysql2/promise.js:341:22)
This corrects Issue #1525 by falling back to the JS engine's own implementation of parseFloat.
I am making a script that reverses a series of IP addresses. For each list of IP addresses, i add the IP addresses in my DB via a query. I...
Hey, As given in Readme: ``` const [rows,fields] = await promisePool.query("SELECT 1"); ``` works well returning: ``` [ [ TextRow { '1': 1 } ], [ ColumnDefinition { _buf: [Object],...
pool.js ```js import mysql from 'mysql2' import { dbusername, dbpassword, dbname, host } from './config' const pool = mysql.createPool({ host: host, user: dbusername, password: dbpassword, database: dbname, connectionLimit: 214000, waitForConnections:...
I get the following error when I bind to a parameter with an integer variable with the value of 0. TypeError: Bind parameters must not contain undefined. To pass SQL...
I've been looking into a strange issue, where my code works perfectly fine on my local environment, but something goes wrong in our production environment (which uses RDS for mysql)....
I need to connect to a MySQL 8 database with the charset UTF8MB4 and collation UTF8MB4_DE_PB_0900_AI_CI, but instead of a connection I get a RangeError. The source seems to be...