From 18c7c55e5a3e25772c9d90b6300c0c91d6b12b20 Mon Sep 17 00:00:00 2001 From: Rahul Date: Fri, 3 Jan 2025 19:20:04 +0530 Subject: [PATCH] Update README.md --- .../materials/1-dimensional-data-modeling/README.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/bootcamp/materials/1-dimensional-data-modeling/README.md b/bootcamp/materials/1-dimensional-data-modeling/README.md index 3bec5254..5a6ec748 100644 --- a/bootcamp/materials/1-dimensional-data-modeling/README.md +++ b/bootcamp/materials/1-dimensional-data-modeling/README.md @@ -136,7 +136,18 @@ There are two methods to get Postgres running locally. 2. Go inside the container by executing `docker exec -it bash` 3. Run `pg_restore -U $POSTGRES_USER -d $POSTGRES_DB /docker-entrypoint-initdb.d/data.dump` ---- +## **Frequently Asked Questions (FAQs)** + +1. **Not able to connect Postgres running on Docker?** + - Please recheck details like host and port details. + +2. **Throwing errors like connection refused even when all details are correct.** + - Please check that the port(5432 or port you use) runs only docker service, not any other services. + - Windows - use the command to check port availability in cmd ```netstat -ano | findstr :5432``` + - to kill rest of extra services use ```taskkill /PID /F``` + - Mac - use the command on terminal to check port availability ```lsof -i :5432``` + - to kill rest of extra services use ```kill -9 ``` + #### 💡 Additional Docker Make commands