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
0
votes
0 answers
Why does my client only receive data from node.js after a client page refresh?
This is very odd. Here is the abridged output of my log:
info - socket.io started
debug - served static content /socket.io.js
debug - client authorized
info - handshake authorized D7J-52pdfYAtijFhFxh7
debug - setting request GET…

EvilJordan
- 669
- 7
- 16
0
votes
1 answer
Queries are not executed after transaction is rolled back
I want to execute transactions in node-mysql (by executing queries START TRANSACTION, ROLLBACK, COMMIT). I have this piece of code:
conn.query("START TRANSACTION");
conn.query("INSERT INTO users (id, name, age) VALUES (1, 'Mat', '24')",…

Mateusz Bartkowiak
- 154
- 2
- 9
0
votes
2 answers
node.js - How to extend mysql results object
I am a long time PHP developer who decided to give node.js and express a try today. I am trying to find the best way to merge my results into a single object. I may be approaching this to much like a PHP developer and could use some assistance. …

bdwilliams
- 1
- 1
0
votes
1 answer
Can't seem to query specific things using node-mysql with JavaScript
p_info_query('SELECT * FROM ' + + ' WHERE name = ' + user_name, password, client_connect.id, p_info, function(results) {
This seems to produce a Unknown Column 'user_name'.
I searched online for some examples of people doing this, but I…