A
A
Alexey Yakovlev2020-02-28 14:25:57
Node.js
Alexey Yakovlev, 2020-02-28 14:25:57

Is it possible to connect a database to a server written in node.js using php?

I have a server that runs on Node and I have a registration. Is it possible to connect a php database to a Node server?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
stsin, 2020-02-28
@aleshaykovlev

If you mean connect to mysql (which was previously accessed via php), then the mysql2 option

A
Alexander Sharomet, 2020-02-28
@sharomet

db via php? Maybe you have to enter the database to which your php code is connected?
You can connect specifically to the database, the node has a bunch of modules for these purposes, depending on which database.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question