Node et mysql

36 views
Skip to first unread message

Philippe Anglade

unread,
Oct 7, 2019, 12:48:07 PM10/7/19
to node-mysql
Bonjour,
Je suis nouveau dans Node ...
Questions, (car je projette une appli mais n'ai pas fait mon choix technique) :

- peut-on installer mysql globalement  (npm install mysql -g ) pour y accéder depuis qq répertoire ?
- la bdd crée est-elle localisée dans le répertoire de l'application ?
Merci.

Hello !
I'm new in Node.js...
My questions, (since I consider building an app, but didn't choose the technical choices) : 

- can we install mysql globally (npm install mysql -g ), to access the fonctionalities from every directory?
- is the database created in the application directory ?
Thank you.

Andrey Sidorov

unread,
Oct 8, 2019, 6:09:05 PM10/8/19
to node-mysql
Hi Philippe,

This library is just implementation of mysql server protocol. Database ( and all associated files ) are managed by mysql server (and very often is on a different computer from where client is running)

There is nothing wrong in having mysql module installed globally, it should work same way as local dependency

Philippe Anglade

unread,
Oct 8, 2019, 10:35:13 PM10/8/19
to node-...@googlegroups.com
Many thanks, Andrey !

--
You received this message because you are subscribed to the Google Groups "node-mysql" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-mysql+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/node-mysql/e5ddba02-ec07-494e-abb8-f2d3dfb15eb8%40googlegroups.com.
Reply all
Reply to author
Forward
0 new messages