[Tutor] Questions on pgDB connection

Kent Johnson kent_johnson at skillsoft.com
Mon Aug 16 15:58:28 CEST 2004


Is the password really "None" or is it empty? Maybe you should try
db = pgdb.connect(dsn='localhost:moncdata', user='username',
  password='')

Kent

At 11:43 PM 8/16/2004 +1000, Ms Soo Chong wrote:
>Hi,
>
>Thanks for your prompt reply.
>
>PostgreSQL is in the same machine as my python script.
>Actually, I have already tried this method :
>
>import pgdb
>db = pgdb.connect(dsn='localhost:moncdata', user='username',
>  password='None')
>
>The error message showed something related to the password,
>stating that it is unknown. I'm not very sure about the
>exact error message, sorry, B'cos I'm currently not in the
>Uni, therefore, I can't check the message, but mayb I will
>take it down tomorrow and email python tutor again.



More information about the Tutor mailing list