PostgreSQL setup not working

In the Computer Science Career Path in the Database Unit. There is a section about setting up PostgreSQL on my own personal computer. I followed the instructions in the article, but when I tried to test an example towards the end of the article. The command window would say the password I entered was incorrect, or that access is denied. I have tried numerous fixes to try to get it working, including uninstalling and reinstalling PostgreSQL, but nothing has worked. I would appreciate any assistance in getting this software running correctly on my computer as there are a couple of projects that must be done off Codecademy, in PostgreSQL.
Article Link: https://www.codecademy.com/journeys/computer-science/paths/cscj-22-databases/tracks/cscj-22-database-basics/modules/wdcp-22-using-psql-local-af2f4287-7839-4517-befe-fa24e32b2312/articles/installing-and-using-postgresql-locally

image

Heya, just a quick question. In the article i can see that is says “C:\Users\avinashmoondra>“C:\Program Files\PostgreSQL\12\bin\psql.exe” –username postgres” in the instructions and in your example i cant see a username specified. Did you leave that out on purpose ? Because if you didn’t i think thats the solution for your problem :slight_smile:

Hopefully that provides a solution or a nudge in the right direction.

I did try that and it still said “Access is denied”.

Have you tried to open the psql.exe from the directory itself ?

I just tried opening the psql file from the directory, but as soon as I enter the password, the window closes.

Ok so I figured out the issue with the password not working. The password in postbird was not the same as when I set up PostgreSQL initially. It works now, the issue I’m running into is having the command window display the information from the table.
image

Good to hear ! :slight_smile: and thanks for sharing the solution.