跳至內容
選單
此問題已被標幟
2 回覆
3715 瀏覽次數

Database creation error: connection to server at "localhost" (::1), port 5432 failed: Connection refused (0x0000274D/10061) Is the server running on that host and accepting TCP/IP connections? connection to server at "localhost" (127.0.0.1), port 5432 failed: Connection refused (0x0000274D/10061) Is the server running on that host and accepting TCP/IP connections?


Can anyone help me with this i cannot fix this although ive been searching for a lot

頭像
捨棄
最佳答案

There are several ways to verify the PostgreSQL installation. You can try to connect to the PostgreSQL database server from any client application. But a quick way to verify the installation is through the psql program that comes with the Windows installation.


First, click the psql application to launch it (or enter psql in the searchbar). The psql command-line program will display.

source: https://www.postgresqltutorial.com/postgresql-getting-started/install-postgresql/

I hope this helps!

頭像
捨棄
作者

Hello, sorry for the late reply.

I cannot find any of my SQL Shell even when ive deleted the psql once and reinstalled it on my computer, can you help me how do i fix this?

作者

I tried to uninstall and then reinstall it again

Database creation error: connection to server at "localhost" (::1), port 5432 failed: FATAL: password authentication failed for user "openpg"

Then this happens

最佳答案

Most likely your PostgreSQL service is not running. If you are running a SystemD based distribution (which you probably do), what is the output of:

systemctl status postgresql.serivce


頭像
捨棄
作者

I'm using window, can you tell me how to, im a student. I have odoo experience at school but at home i have no idea setting odoo server up to make things.
Thank you a lot

作者

Database [postgres]:
Port [5432]:
Username [postgres]:
psql: warning: extra command-line argument "-U" ignored
psql: warning: extra command-line argument "postgres" ignored
psql: warning: extra command-line argument "-d" ignored
psql: warning: extra command-line argument "postgres" ignored
psql: warning: extra command-line argument "-p" ignored
psql: warning: extra command-line argument "5432" ignored
psql: error: could not translate host name "systemctl" to address: Unknown host