Re: Psycopg2 : error message.
| От | Karsten Hilbert |
|---|---|
| Тема | Re: Psycopg2 : error message. |
| Дата | |
| Msg-id | 20140516151443.GD15102@hermes.hilbert.loc обсуждение |
| Ответ на | Re: Psycopg2 : error message. (skeeved <skeeved@skeeved.org>) |
| Ответы |
Re: Psycopg2 : error message.
|
| Список | pgsql-general |
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
В списке pgsql-general по дате отправления: