[Python] psycopg2.OperationalError: could not translate host name...

Discussão em 'Python' iniciado por Stack, Março 23, 2025.

  1. Stack

    Stack Membro Participativo

    I am unable to connect to the PostgreSQL database through psycopg2 for some reason

    here is my connection configuration:

    conn = psycopg2.connect(
    user = "postgres",
    password = "xxxxxx",
    host = "xxxx.us-east-1.rds.amazonaws.com",
    database = "current2",
    port = 5432
    )


    I put sensitive information in x's, but ignoring that, what exactly am I doing wrong?

    Continue reading...

Compartilhe esta Página