database connection error - postgresql

bijoy bijoy.franco at gmail.com
Mon Mar 30 05:04:37 EDT 2009


hi,

I figured out these too.
Pls excuse me

Thanks

Bijoy


On Mon, Mar 30, 2009 at 1:30 PM, bijoy <bijoy.franco at gmail.com> wrote:

> Hi,
>
> *code:* (only the class definiton and Database connection part)
>
> import pg
>
> __metaclass__=type
>
> class addbook:
>
>         conn=pg.connect('secondbooks.db')
>         curs=conn.cursor()
>
> *error:*
>
> conn=pg.connect("secondbooks.db")
> pg.InternalError: FATAL:  database "secondbooks.db" does not exist
>
>
> ----------------------------------------------------------------------------------------------------
> In fact i have a database called secondbooks in postgresql.
>
> Pls help on this as i am new to python.
>
> Thanks in advance
>
> Bijoy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20090330/2bebb9a0/attachment.html>


More information about the Python-list mailing list