Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Alex_Ooi
Helper IV
Helper IV

DataSource.Error: ODBC: ERROR [08001]

Hi all, I am connecting to my PostgreSQL dB using ODBC for Power BI. When I tested my connection in ODBC, it worked fine. When I tested the connection again in my IDE, it worked fine.

 

When I am trying to establish connection to Power BI, it returns this error message:

 

DataSource.Error: ODBC: ERROR [08001] could not connect to server: Connection refused (0x0000274D/10061)
Is the server running on host "localhost" (::1) and accepting
TCP/IP connections on port 5431?
FATAL: password authentication failed for user "readonly"

 

I don't know what's wrong because I am very sure the password is exactly what is given to me by my IT admin guy. Please help.

5 REPLIES 5
CFTeam
New Member

having the same error here, in windows too, could you manage to solve it @Alex_Ooi ?

Anonymous
Not applicable

@Alex_Ooi 

Try the troubleshooting solution here: https://www.ionos.com/community/hosting/postgresql/troubleshoot-a-postgresql-could-not-connect-to-se...

 

To correct this, edit your posgresql.conf file:

  • Ubuntu 16.04: sudo nano /etc/postgresql/9.5/main/posgresql.conf
  • CentOS 7: sudo nano /usr/pgsql-10/share/postgresql.conf

 

Paul Zheng _ Community Support Team
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

@Anonymous I don't think this is applicable to me as I am using Windows OS. Apologies for not mentioning this earlier.

amitchandak
Super User
Super User

@Alex_Ooi , are you giving correct url, it looking for localhost?

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

@amitchandak hi, thanks for your reply. Yes, I am giving the correct url. Like I said, there is no problem with the connection when I established it in ODBC and my IDE.

Helpful resources

Announcements
July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors