DEV Community

Discussion on: How To Build Rest API With NodeJS, Express, and MySQL

Collapse
 
Sloan, the sloth mascot
Comment deleted
Collapse
 
juliest88 profile image
Julia Strichash

Hi,
You're welcome :)
Question: did you install myqsl2 or mysql node module?
The error that you described occurs when I try to use mysql node module.

Collapse
 
carlossoto2 profile image
Charles

thanks a lot for your quick response
i think is mysql2

this is my package.json
"cors": "^2.8.5",
"dotenv": "^8.2.0",
"express": "^4.17.1",
"express-validator": "^6.10.0",
"jsonwebtoken": "^8.5.1",
"mysql2": "^2.2.5"