Postgres connection refused: Unable to establish server connection

To find the line “FATAL: database files are incompatible with server,” you can either open the log file on Mac M1 or execute the command. By running the command, your old databases will be removed and the postgres database schema will be reinitialized. The solution, as mentioned by Rob, is that the Postgres database server has not been started yet.


Solution:

Rob made it clear (reaffirming my assumption) that the Postgres database server has not yet been started.
“””.

To manually start the process, enter

services.msc

in i.e. ‘PowerShell` to open the Pop Up. Look for Postgres in the Pop Up and start/stop the service. Remember to restart pgAdmin once you have completed this step…
“””.

Frequently Asked Questions