I got server A, which is a node.js server, and server B which is apache php server. I want to know how I can use server A to get data from database on server B. Is there a module or middleware which can do that?
Asked
Active
Viewed 4,129 times
4
-
Possible duplicate of http://stackoverflow.com/questions/3878818/node-js-and-mysql-drivers – James C Apr 26 '11 at 08:44
1 Answers
6
You can connect remotely to server B with node-mysql module by setting client host
, port
, user
and password
options (see tutorial and API of node-mysql).

yojimbo87
- 65,684
- 25
- 123
- 131