Can't connect the postgreSQL with psycopg2

后端 未结 6 537
无人及你
无人及你 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条回答
  •  旧时难觅i
    2020-11-30 04:08

    Only this solved my problem, make a symbolic link to the /tmp/.s.PGSQL.5432:

    sudo ln -s /tmp/.s.PGSQL.5432 /var/run/postgresql/.s.PGSQL.5432
    

    Thanks to, Sukhjit Singh Sehra - s-postgresql-server-is-running

提交回复
热议问题