MrAzzeroth Posted October 5, 2017 Share Posted October 5, 2017 Hy all! Can someone help me? How can i install the mysql module? Link to comment Share on other sites More sharing options...
David_Sibirkin Posted October 5, 2017 Share Posted October 5, 2017 (edited) Add new dependency to your package.json , e.g "mysql": "2.14.1" Install it using npm install And then you can require it in your code var mysql = require('mysql'); https://github.com/mysqljs/mysql Edited October 5, 2017 by David_Sibirkin Link to comment Share on other sites More sharing options...
MrAzzeroth Posted October 5, 2017 Author Share Posted October 5, 2017 I added mysql to package.json but i have problem with installing what program or what i need to install? Link to comment Share on other sites More sharing options...
David_Sibirkin Posted October 6, 2017 Share Posted October 6, 2017 11 час назад, MrAzzeroth сказал: I added mysql to package.json but i have problem with installing what program or what i need to install? Did you install node.js https://nodejs.org/en/ ? What a problem do you have ? 1 Link to comment Share on other sites More sharing options...
MrPancakers Posted October 6, 2017 Share Posted October 6, 2017 OP you need to install NodeJS on your computer, once you've done that then you just use your Command Prompt on your computer (Windows Key + R, then type cmd) and then you need to change your directory using cd (EG. cd C:/Users/Default/Desktop/Server), once you're at your server folder then do npm install mysql 2 Link to comment Share on other sites More sharing options...
MrAzzeroth Posted October 7, 2017 Author Share Posted October 7, 2017 (edited) Ohh thanks David and Pancaker, yes, i installed NodeJS and used the cmd, but I can't change the path (cd) I wrote this: cd E:/.../Server Press enter, and the path doesnt changed, stay on C:/Users/MrAzzeroth What can I do now? UPDATE Nope, i forget the /D in cmd. I installed the mysql, thanks for all!!!!! Edited October 7, 2017 by MrAzzeroth Solved Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now