A pure node.js JavaScript Client implementing the MySql protocol. This is about the node package `mysql`, not `node-mysql` which is much less popular.
Questions tagged [node-mysql]
699 questions
-1
votes
2 answers
How to make login API in node.js using mysql database
i am new in node.js and i want to make a login api using express and mysql database,Please share with me your idea and example.

aldy
- 1
- 1
- 3
-1
votes
1 answer
Getting Error "Error: Cannot enqueue Handshake" Using node-mysql For MS SQL Server and node App Connectivity?
I have developed a REST api using node.js. My api is running on my macbook. I am trying to access MS SQL server running on another machine using node-mysql module, but while trying to create a connection I am getting the following error:
GET…

Mehdavi5
- 161
- 4
- 14
-1
votes
2 answers
Dynamic variables with node-mysql 'WHERE' statement?
I'm using node-mysql in my node.js server.
Problem is, I'm trying to pass a javascript variable into my WHERE sql statement and it's not picking it up (for obvious reasons).
I've looked through node-mysql documentation, including the SET method,…

PickMeUpLittle
- 37
- 1
- 8
-1
votes
1 answer
Async.waterfall not passing callback for nested mysql queries?
I have a series of nested mysql queries that I need to execute in series, as later queries rely on the result of the earlier ones - async.waterfall seems like the perfect solution. However, the second step of the waterfall is failing to append its…

dasein.phil
- 3
- 2
-1
votes
3 answers
mysql module in node.js not works in my case
So i have next test code, which i found here
// Include http module,
var http = require('http'),
// And mysql module you've just installed.
mysql = require("mysql");
// Create the connection.
// Data is default to new mysql installation and…

Ishikawa Yoshi
- 1,779
- 8
- 22
- 43
-2
votes
1 answer
Why is routing to 'name' not working when it works for 'id'?
I have local backend on mysql and I am using connect Node.js to connect both of them. Everything is working fine. The connection is succesfull all the queries are happening but why is this not working.
router.get("/:users/:name", (req, res) => {
…

Shivam Sharma
- 9
- 4
-2
votes
1 answer
node-mysql how to use result outside of an anonymous function
I have a query like below:
connection.query('SELECT * FROM `Users` WHERE `Id` = ?;', [Id], function (err, row) {
var a = row;
});
//how can I use variable `a` in here?

hiun
- 33
- 9
-3
votes
2 answers
what will be sql query for this
i want to Find out role.id by searching role.name and then retrieve all users by matching their user_id = founded role.id

Mukesh Kumar
- 65
- 5
-3
votes
1 answer
How to make a connection with MySQL in NodeJS?
I am new to NodeJS application development.
My requirement is to store my registration form data in a MySQL database.
Before that, I want to know how to establish the connection with a MySQL database.
After that, store the form data.

user1632949
- 615
- 3
- 9
- 18