Dealing with the PostgreSQL connection refused error in the Phoenix framework

April 24th, 2024

Filed under: Web Development | Be the first to comment!

I wanted to learn to use the Phoenix web development framework. I was going through the Up and Running guide on the Phoenix framework’s site. When I ran the mix ecto.create command to create the database, I kept getting the following error: 15:45:35.314 [error] Postgrex.Protocol (#PID<0.344.0>) failed to connect: ** (DBConnection.ConnectionError) tcp connect (localhost:5432): connection […]