I got server A, which is 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 a database on server B. Is there a module or middleware that can do this?
You can connect remotely to server B using node-mysql by setting the client parameters host , port , user and password (see the manual and the node-mysql API).
host
port
user
password