Relative Content

Tag Archive for mysqlnode.js

GET http://127.0.0.1:3001/search/3 404 (Not Found) error for retreiveing a record from a database

I am trying to create a web app to retrieve records from a mysql database but it seems i keep getting the 404 not found error. I am suing node.js for server side, and it seems that my endpoints are matching, but I am still getting an error. Any suggestions? Running the server on port 3001 and testing the webapp using a liver server feature in vscode on port 3001. New to programming web apps, would be grategul if you could point to a tutorial on making web apps to interact with a mysql database. Below is the code for the search.js:

Error in node.js with Mysql after a few hours

I’m new to node js, I built a server that uses mysql for the database, and after a few hours of running the server, an error appears and a crash occurs. I wanted to see if anyone could see something in my code.