Search Postgresql Archives

Re: Psycopg2 : error message.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Also remove the first "try" + remove the space before "conn=" so you have this:

#!/Python27/python.exe

import psycopg2

# Try to connect

conn=psycopg2.connect("dbname='busard_test' user='laurent' host='localhost' password='cactus'")
	
cur = conn.cursor()


On Fri, May 16, 2014 at 12:41 PM, image <lcelati@xxxxxxxxxxxxxxxxxxxxxxx> wrote:
Hello,

Thanks. Ok i deleted the except. Please find below the 2 updates usefull
liles :

pg_test.py
<http://postgresql.1045698.n5.nabble.com/file/n5804203/pg_test.py>

SS_dos.JPG
<http://postgresql.1045698.n5.nabble.com/file/n5804203/SS_dos.JPG>


In advance, thank you.

Regards.

IMAGE.



--
View this message in context: http://postgresql.1045698.n5.nabble.com/Psycopg2-error-message-tp5804197p5804203.html
Sent from the PostgreSQL - general mailing list archive at Nabble.com.


--
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux