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?
angry kiwiangry kiwi
asked Apr 26, 2011 at 8:31
-
Possible duplicate of stackoverflow.com/questions/3878818/node-js-and-mysql-driversJames C– James C2011年04月26日 08:44:33 +00:00Commented Apr 26, 2011 at 8:44
1 Answer 1
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).
answered Apr 26, 2011 at 8:43
Comments
default