1️⃣ MySQL Server Check (XAMPP)
-
XAMPP Control Panel open karo
-
MySQL → Start (Running hona chahiye ✅)
phpMyAdmin open:
2️⃣ Database & Table Create
Database:
Sample Table:
👉 Ye table CRUD ke liye use hogi.
3️⃣ DB Config Folder
Path confirm:
Is folder ke andar file banao 👇
📄 src/db/db.js
🧠 CI4 mapping:
4️⃣ DB Connection Test (IMPORTANT)
📄 src/app.js me upar add karo:
⚠️ Path dhyaan se:
5️⃣ Server Restart
Terminal me:
Expected Output:
👉 Matlab:
-
Node server running ✅
-
MySQL connected ✅