Answer the question
In order to leave comments, you need to log in
How to make PostgreSQL work with Telegram bot?
Hello!
There is a Telegram bot. The bot sends all statistics of user actions to the PostgreSQL database. The database is deployed on a remote server, on the same server as the bot.
But, for example, this morning I tried to connect to the database. And even on the simplest :~$ psql -h
localhost command I got an error:
psql: error: could not connect to server: Connection refused
Is the server running on host "localhost" (127.0.0.1) and accepting
TCP/IP connections on port 5432?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question