--- FIX: Port Already in Use (EADDRINUSE)address already in use ::3000 SOLUTION --> Kill the process on that port: //==== OPTION A ====== gloablly install ( not in project package.json npm install -g kill-port and then -->> kill-port 3000 // use your port //===== OPTION B ======= --- Windows --- netstat -ano | findstr :3000 taskkill /PID 17780 /F --- Linux / macOS --- lsof -i :3000 kill -9 17780 //Note Use your PID instead of 17780 ==============END ==========
Sequelize provides a powerful migration system that allows you to carefully manage database schema changes. Migrations ensure that you can apply specific changes to the database without risking data loss. Steps to Set Up Migrations: Install Sequelize CLI npm install --save-dev sequelize-cli Initialize Sequelize CLI: npx sequelize-cli init These about two commands only will be run once while creating database or when we need to change structure of any table structure once ii is done then for each changes we have to make migration file and have to run it. it may create config.json file in the config/config/json { "development" : { "username" : "root" , "password" : "Birla@123456" , "database" : "mhs" , "host" : "82.112.XXX.XX" , // use you server's IP "dialect" : "mysql" , "port" : 3306 }, "test" : { ...