hi,
i'm using vb6 as a front end and postgresql 8.0.0 as a backend. i just configured the pg_hba.conf file. i changed the method to "md5" and in the database, i gave the name of database. but when i connect with my application, it shows runtime error -3146 , odbc--call failed.
my pg_hba.conf file is as
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# IPv4 local connections:
#host all all 127.0.0.1/32 md5
host db_test postgres 127.0.0.1/32 md5
# IPv6 local connections:
#host all all ::1/128 md5
in my application, i put the password 'postgres@132' that i used while installing the postgres.
my connection string is
Public Sub getconnect()
Set ws = CreateWorkspace ("", "cdef", "", dbUseODBC)
Set dbaccount = ws.OpenDatabase ("", , False, "ODBC;dsn=Postg reSQL30;uid=pos tgres;pwd='post gres@132'")
End Sub
when i use trust instead of md5 in method in pg_hba.conf, it runs well.
can anybody suggest ?
with regards
i'm using vb6 as a front end and postgresql 8.0.0 as a backend. i just configured the pg_hba.conf file. i changed the method to "md5" and in the database, i gave the name of database. but when i connect with my application, it shows runtime error -3146 , odbc--call failed.
my pg_hba.conf file is as
# TYPE DATABASE USER CIDR-ADDRESS METHOD
# IPv4 local connections:
#host all all 127.0.0.1/32 md5
host db_test postgres 127.0.0.1/32 md5
# IPv6 local connections:
#host all all ::1/128 md5
in my application, i put the password 'postgres@132' that i used while installing the postgres.
my connection string is
Public Sub getconnect()
Set ws = CreateWorkspace ("", "cdef", "", dbUseODBC)
Set dbaccount = ws.OpenDatabase ("", , False, "ODBC;dsn=Postg reSQL30;uid=pos tgres;pwd='post gres@132'")
End Sub
when i use trust instead of md5 in method in pg_hba.conf, it runs well.
can anybody suggest ?
with regards
Comment