angry kiwi
angry kiwi

Reputation: 11445

Node.js - connect to MySQL database server

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?

Upvotes: 4

Views: 4216

Answers (1)

yojimbo87
yojimbo87

Reputation: 68305

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).

Upvotes: 6

Related Questions