Setup Local DB
🚀 Goal
🧠 Prerequisites
🖥️ On macOS
1. Install PostgreSQL via Homebrew
brew install postgresql
brew services start postgresql2. Create a User & Database
psql postgres
-- Inside the prompt:
CREATE USER myuser WITH PASSWORD 'mypassword';
CREATE DATABASE mydb OWNER myuser;
\q3. Install VS Code PostgreSQL Extension
4. Connect to PostgreSQL in VS Code
🖥️ On Windows
1. Install PostgreSQL
2. Add PostgreSQL to System PATH
So you can use psql in CMD/PowerShell:
3. Create a New Database
4. Install VS Code PostgreSQL Extension
5. Connect from VS Code
⚙️ Run SQL Files in VS Code
✅ Optional: Load Your .sql File
📦 Recommended Tools
💡Create Employee DB like schema below:

📐Create employee_db
🧠 Using MCP DB Server to working with DB
Last updated