Jump to content

Recommended Posts

Posted (edited)

Hey !
First time I use a postgresql database, I'm trying to connect to the database with a python script I running on my computer.
I followed this good tutorial to connect to database ; http://www.postgresqltutorial.com/postgresql-python/connect/
So my database.ini file looks like this :

[postgresql]
host=65.19.141.xx
database=databasename
user=aut0wash_user1
password=mypassword

The host adress correpond to the Johnny server, and others informations to my exemple setup.

While running the script I got an error : "FATAL:  no pg_hba.conf entry for host "xx.xxx.xxx.xx", user "aut0wash_user", database "aut0wash_travian", SSL off"
xx.xxx.xxx.xx is my IP, not the host one.
Do I need to ask for a remote access ?
I tried to use Mysql and it's worked good (I used Remote Mysql) but I wanted to try Postgre this time !

Thx for answer, if I missed some informations tell me ! :)

Edited by aut0wash
  • 1 month later...
Guest
This topic is now closed to further replies.
×
×
  • Create New...