File tree Expand file tree Collapse file tree 1 file changed +12
-1
lines changed
bootcamp/materials/1-dimensional-data-modeling Expand file tree Collapse file tree 1 file changed +12
-1
lines changed Original file line number Diff line number Diff line change @@ -136,7 +136,18 @@ There are two methods to get Postgres running locally.
136
136
2. Go inside the container by executing ` docker exec -it < container_name_or_id> bash`
137
137
3. Run ` pg_restore -U $POSTGRES_USER -d $POSTGRES_DB /docker-entrypoint-initdb.d/data.dump`
138
138
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
+
140
151
141
152
# ### 💡 Additional Docker Make commands
142
153
You can’t perform that action at this time.
0 commit comments