Forum Discussion
I am not able to connect Postgre SQL DATABASE
- 9 years ago
Hi Anonymous,
From the error message, the issue is caused by that the connector is not be configured properly. Please refer to this article to configure connector again: Power BI Connectivity to PostgreSQL.
Best Regards,
Qiuyun Yu
Having tried to get this going for a few hours with no success decided to change the approach and use a postgreSQL ODBC driver and it worked straight away.
First get the driver from
https://www.postgresql.org/ftp/odbc/versions/msi/
I downloaded the psqlodbc_09_06_0100-x64.zip and ran psqlodbc_x64.msi
Now click on 'Get Data' in PowerBI and select ODBC. Choose <None> in Data source name (DSN) and click on Advanced Options and enter a connection string which you can find at
https://www.connectionstrings.com/postgresql/
I used something like
Driver={PostgreSQL ANSI(x64)};Server=rds-postgresql-xxxx-warehouse.cftg4xxxxxt.ap-southeast-2.rds.amazonaws.com;Port=5432;Database=myDatabase;
My server is an AWS server. The most important part is the driver name which you can search for in your ODBC settings and you will see a warning icon by the side of the connect string until you get this right.
Hi markcaple,
I am trying the approach you have mentioned to connect Power BI to Postgre SQL DB. I have downloaded and installed the latest version of the driver (psqlodbc_09_06_0310-x64.zip) from https://www.postgresql.org/ftp/odbc/versions/msi/
However, I get a connection timeout error ( but a direct connection to Postgre SQL DB with the same credentials is working fine).
Any pointers to what I could be missing? The only option I can think of is some firewall blocking the connection.
Thanks,
Pavithra