Forum Stats

  • 3,760,325 Users
  • 2,251,685 Discussions
  • 7,871,061 Comments

Discussions

Just started with node js and mysql.

User_215C0
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 ?