• Wednesday , 21 March 2018

NodeJS + MySQL Database Connection Tutorial

Code Canyon

Learn how to do NodeJS + ExpressJS + MySQL database connection using XAMPP as MySQL database and querying data from database.

Original source

3d Ocean

Related Posts


  1. crashxxx
    July 2, 2017 at 02:05

    windows? lol

  2. Tim Armstrong
    July 2, 2017 at 02:05

    Instantly subbed when you set the port as 1337. Nice work.

  3. Robert Loh
    July 2, 2017 at 02:05

    you purposely check error like this -> !!error, LOL

  4. syed ibrahim
    July 2, 2017 at 02:05

    This was the best tutorial I had seen. Thanks mate…

  5. Mr. HyperCube
    July 2, 2017 at 02:05

    Access denied for user ''@'localhost' Please help?

  6. Sajan Khandelwal
    July 2, 2017 at 02:05

    Thanks..Helped a lot

  7. Tamil Tips TV - Health
    July 2, 2017 at 02:05

    AWesome thanks you.

  8. Taleem Hussain
    July 2, 2017 at 02:05

    i have question about connectionlimt 50 .is it not disadvantage when thousand user want login same time then it take much time to login? and if we not use limit can we use release connection ?it will be helpful if you release after query run every coneection. please correct me i am little bit confus.

  9. Eric Andresen
    July 2, 2017 at 02:05

    Bonk, Bonk, Bonk, Bonk, Bonk

  10. Sæbjørn Dvergastein Dahle
    July 2, 2017 at 02:05

    I came expecting to learn what's in the title, but left with a bonus: shift+right click in Explorer gives mes "Open command window here". Thanks!

  11. Dru Moncatar
    July 2, 2017 at 02:05

    Thanks for this.

  12. H4ram
    July 2, 2017 at 02:05

    When I run the file in node nothing happens, It opens the file, but nothing else comes afterwards.

  13. Luis Agüero
    July 2, 2017 at 02:05

    Hello ! Nice tutorial.

    Im new using NodeJS and I have this couple of doubts:

    Once I make the connection with the db ( connection.connect(); ) In my conf.js file, this connection can be used in other files using " module.exports = connection; " ?

    That being said, I have another question:

    I'm used to work with CodeIgniter as an API, where the connection to the MySQL lives only during each request. In this case, taking in count that NodeJS should "be on" the whole time, is it bad to have a non stop living connection ? How does this work ?

    Thanks !

  14. Kovid Rathee
    July 2, 2017 at 02:05


  15. Amit Moral
    July 2, 2017 at 02:05

    how view data using angular js

  16. elqn nrms
    July 2, 2017 at 02:05

    I am able to do the same using XAMPP Server. But i want to do it using mySQL default server.

  17. Uma Mahesh
    July 2, 2017 at 02:05

    Really working hard to learn node…You are making simpler thank you mehul great going………

  18. yash mehta
    July 2, 2017 at 02:05

    hey can you show an example of react instead of express framework. Thanks

  19. manjny
    July 2, 2017 at 02:05

    Hi thanks Mehul for your excellent vdo tutorials.. I using MySql database with nodejs …please help me to develop the code to display the MySql database's table contents in html template… how I do it ? anybody for help me ? my email: manjny@gmail.com

  20. Alex
    July 2, 2017 at 02:05

    is your neighbour doing the dirty buisness? 😉
    good tutorial!

Leave A Comment

You must be logged in to post a comment.