How can I prevent connection error to postgreSQL database after computer restart? - postgresql

I tried this several times:
I have windows 7. I installed postgresql 9.6.1.-1. I can connect via pgAdmin 4 to the database. But as soon as I restart the PC, I get a connection error:

Related

Postgresql the database cluster initialisation failed

I am getting this error while installing postgresql on windows 10 server, how can I solve it? Postgresql version:15

Impossible to connect to a PostgreSQL server after a new installation

I have installed postgresql on my new laptop (on Windows).
I see the service postgresql-x64-11 - PostgreSQL Server 11 is running and is automatic. Perfect.
I have installed "dbeaver" (21.21). I would like to create my first database via dbeaver. I always get this message:
Database postgres does not exist
Is it possible to create a database with dbeaver ? Or not ? Or must I do the creation with some command lines ?

Can't query data on pgAdmin 4 but it works using psql and Python

I have created a postgresql database on rds and I can connect and query it using psql on terminal or sqlalchemy on Python. When using pgAdmin4 I can't query or visualize the data but can create/alter tables, import data, ...
I have also tried connecting it to Metabase and DBeaver but the connection times out.
Any ideas why this is happening?
I have also connected the database using pgAdmin3 and was able to visualize the data and query it, but since I am using postgresql 11.4 it is not fully supported by pgAdmin3.
When I open the query tool on pgAdmin 4 I get this message:
could not send data to server. Socket is not connected could not send
startup packet: Socket is not connected.
Helped me:
changing 'localhost' in connection settings to '127.0.0.1'
Disconnecting from server, Changing the connection -Host to localhost under properties, fixed it for me, running PgAdmin 4 in windows 11 connecting to PgSQl in WSL2

Postgresql Service stopped running

I am running PostgreSQL v9.6 on windows 10. Today I tried using a program that uses PostgreSQL Databases and couldn't connect to it. I went to the Services menu in Computer Management and noticed PostgreSQL wasn't running. I tried to run it and received
When I goto PGAdmin4 both Databases are still running however.

PostgreSQL could not receive data from server: Software caused connection abort (0x00002745/10053)

I tried to establish a connection in pgAdmin to the PostgresSQL server.
I always get the message:
could not receive data from server: Software caused connection abort (0x00002745/10053).
I read several posts where people had the same problem but they didn't help me.
Because my version was a bit older I uninstalled the whole postgresql and installed the newest version with the installer of EnterpriseDB (PostgreSQL 9.6 on windows 64). Everything looks fine. But I can't connect to the server from pgAdmin 4 again. I get the same error message.
In the logfile is written: "An existing connection was forcibly closed by the remote host"
Has anybody a clue what the problem could be?
A partial solution for me was to restart the postgresql-server each time after booting up my computer with NET STOP and NET START. This was cumbersome but worked.
Because my computer still had other connection problems, subsequently I updated my system to Windows 10 which totally solved all my problems.