Skip to main content

Posts

Showing posts from 2025

How to Kill the Process: ( Port Process )

If you are seeing a Error like  -   Error: listen EADDRINUSE: address already in use :::3000   then you can easily kill it by running these commands  Find the Process Using Port 3006 : On Windows   netstat -ano | findstr :3000 On Linux/macOS lsof -i :3000       Terminate the Process :       On Windows taskkill /PID <PID> /F    means       taskkill /PID 17780 /F On Linux/macOS kill -9 <PID>     means kill -9 17780                ==============END ==========  

How to edit data base structure in Sequelize (MYSQL)

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" : {     ...