Search Postgresql Archives

Re: Psycopg2 : error message.

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

 



On Fri, May 16, 2014 at 11:07:42AM -0400, skeeved wrote:

> Looks like you have an invalid connection string:
> conn=psycopg2.connect("dbname='busard_test' user='laurent' host='localhost' password='cactus’")
> Try removing the double quotes, they are obscuring the parameter names and values:
> conn=psycopg2.connect(dbname=‘busard_test', user=‘laurent', host=‘localhost', password='cactus’)
> You were also missing some punctuation between the parameters.

He was using the DSN-as-string variant, not the keyword one.

Karsten
-- 
GPG key ID E4071346 @ gpg-keyserver.de
E167 67FD A291 2BEA 73BD  4537 78B9 A9F9 E407 1346



[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