Skip to content

Commit 18c7c55

Browse files
Update README.md
1 parent 3de85a9 commit 18c7c55

File tree

1 file changed

+12
-1
lines changed
  • bootcamp/materials/1-dimensional-data-modeling

1 file changed

+12
-1
lines changed

bootcamp/materials/1-dimensional-data-modeling/README.md

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,18 @@ There are two methods to get Postgres running locally.
136136
2. Go inside the container by executing `docker exec -it <container_name_or_id> bash`
137137
3. Run `pg_restore -U $POSTGRES_USER -d $POSTGRES_DB /docker-entrypoint-initdb.d/data.dump`
138138

139-
---
139+
## **Frequently Asked Questions (FAQs)**
140+
141+
1. **Not able to connect Postgres running on Docker?**
142+
- Please recheck details like host and port details.
143+
144+
2. **Throwing errors like connection refused even when all details are correct.**
145+
- Please check that the port(5432 or port you use) runs only docker service, not any other services.
146+
- Windows - use the command to check port availability in cmd ```netstat -ano | findstr :5432```
147+
- to kill rest of extra services use ```taskkill /PID <PID> /F```
148+
- Mac - use the command on terminal to check port availability ```lsof -i :5432```
149+
- to kill rest of extra services use ```kill -9 <PID>```
150+
140151

141152
#### 💡 Additional Docker Make commands
142153

0 commit comments

Comments
 (0)