简体   繁体   中英

Connect to a remote PostgreSQL database Windows

I'm new at this and I got a job where I need to connect to a PostgreSQL database, they told me to use this command:

psql -h remote_ip -p 54320 -U user -d database

I'm trying to connect with Navicat but this error occurs:

psql: FATAL:  no pg_hba.conf entry for host "18.221.220.67", user "pse", database "pse", SSL off

It sounds like you are not the DBA of this database, and whoever is the DBA forgot to configure the database to let you in. You will have to have them fix it for you. Maybe you are supposed to be coming in through a VPN which will change your apparent IP address (although in that case I would think you wouldn't even be able to contact the database without the VPN; as it would be blocked at the firewall). Or perhaps you are only allowed to connect over SSL, but navicat is not trying to do that for some reason.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM