Node.js - connect to MySQL database server

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?

+4
source share
1 answer

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

+6
source

All Articles