Jump to content

aut0wash

Members
  • Posts

    3
  • Joined

  • Last visited

Posts posted by aut0wash

  1. 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 ! :)

  2. Hi,
    New to heliohost, I would like to run my script but I need differents modules :

    • cPanel username: aut0wash
    • Your main domain: ghorz.com
    • server : Johnny
    • Version of python : 3.6

    import discord
    import asyncio
    import time
    import datetime
    import json
    import Levenshtein (pip install python-Levenshtein)

     

    Is this possible ?

    Another question, how do I import module in my script ?
    I keep "import requests" or I need to write something like "#!/usr/bin/python3.6.1 import requests" ? Or get their name in another file requirements.txt ?

     

    Thx for your service!
     

     

     

×
×
  • Create New...