最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - How to connect node.js to mysql and wampxampp server? - Stack Overflow

programmeradmin0浏览0评论

I'm a PHP programmer and currently working with WP, CI, OC.

I am absolute beginner of node.js, want to know how to connect MySql and WAMP/XAMPP in step by step method.

If I am going to live it, then what will be the live server setup.

Please let me know in step by step method.

I'm a PHP programmer and currently working with WP, CI, OC.

I am absolute beginner of node.js, want to know how to connect MySql and WAMP/XAMPP in step by step method.

If I am going to live it, then what will be the live server setup.

Please let me know in step by step method.

Share Improve this question edited Jul 16, 2015 at 5:27 NoNaMe 6,25232 gold badges85 silver badges114 bronze badges asked Jul 14, 2015 at 4:26 Kaushik DasKaushik Das 4121 gold badge5 silver badges14 bronze badges 1
  • Any you tube tutorial link also well accepted, please grant me a very beginner of Node.js – Kaushik Das Commented Jul 15, 2015 at 8:21
Add a ment  | 

2 Answers 2

Reset to default 6

Follow this tutorial. Tutorial Here

To use node.js you need to install the packet manager NPM and use it to install the dependencies of your project.

In the example tutorial I posted above hes uses NPM to install all his dependencies to connect to mysql just as you requested. He also provides sample code.

Good luck!

Here is another few tutorials you might follow, Click Here

This uses mongoDB instead of mysql but following this tut will help you get things running quicker then you can find something to help with mySQL.

Click Here

After installing npm with the tutorial right above here and you check and make sure you have npm installed then follow this youtube tutorial to get mysql set up with node. And here is a youtube video. Click Here

It might help to use this package Node Mysql Package. Also you can find the resources in the answer to this question here.

发布评论

评论列表(0)

  1. 暂无评论