Can't connect the postgreSQL with psycopg2

后端 未结 6 530
无人及你
无人及你 2020-11-30 04:08

It\'s the first time that I can\'t find the answer about some tech problems Here\'s my problems:

>> conn=psycopg2.connect(database=\"mydb\", user=\"pos         


        
6条回答
  •  执笔经年
    2020-11-30 04:20

    a few years later, using the EnterpriseDB 'graphical' install on OSX 10.8, and pip install of psycopg2 (after linking the /Library/...dylib's as described here) i had this same issue.

    for me the correct connect command was conn = psycopg2.connect('dbname=DBNAME user=postgres password=PWHERE host=/tmp/')

提交回复
热议问题