Forum Stats

  • 3,839,467 Users
  • 2,262,495 Discussions


Just started with node js and mysql.

User_215C0 Member Posts: 1 Green Ribbon

I am using node js with mysql.

1/ Do I have to keep opening my database for each transaction or can I leave it open ?

2/ If I load up a new database why can I not load up records into tables in a loop in mysql ?

I have 8 items that need loading up and if i do it i na loop reading from an array the database only shows last item 8 times !

Which nodejs library should I use for mysql or is mysql automatically part of nodejs ?