[OS X] can't connect to db
rdack
rdacker at pacbell.net
Thu Oct 18 17:59:59 EDT 2001
rdacker at pacbell.net (rdack) wrote in message news:<644f6688.0110180852.11e516f6 at posting.google.com>...
> using pygresql-3.2, postgresql-7.1.3, mac os x 10.1, mac g4.
> doesn't work:
> db = _pq.connect('rda')
>
> my python file is in '/Library/WebServer/CGI-Executables'
> in that directory i can do 'psql 'rda'' ok, but running the .py file
> throws an exception in connect.
>
> i also tried
> db = _pq.connect('rda',None,-1,None,None,'bobacker')
> and:
> db = _pq.connect('rda',None,-1,None,None,'postgres')
> and for coming in from browser html file:
> db = _pq.connect('rda',None,-1,None,None,'www')
> 'postgres', 'bobacker', and 'www' are postgresql users.
>
> what can i do?
i looked closer. misspelled '_pg'. i keep doing that because i was
used to using libpq.
never mind. everything working.
More information about the Python-list
mailing list