Connecting to a remote database

"Imara Jarrett" <[email protected]> Fri, 28 Apr 2006 10:15:30 -0400
Newsgroups gmane.comp.python.db.pypgsql.user
Message-ID <[email protected]>
Hi all,

I am attempting to connect to a database that is on a remote server.

Sample code:

from pyPgSQL import PgSQL

connection =3D PgSQL.connect( host =3D "my-host", database =3D "db", user =
=3D
"user1", password =3D "")

Error: "user "my_login_name_for_machine" does not exist"

Problem is, this user does not have a password.  If I don't include a
password in the connection statement, the error is that a password is
not supplied.  Is there anyway that I can still connect without a
password?

Thanks in advance.


-------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642