connection problem in postgresql

From: "Majo George Cheruvathur" <majogeorges(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: connection problem in postgresql
Date: 2006-04-16 13:54:06
Message-ID: 1eccd4ac0604160654l32902593u24a853c139bc976b@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Dear Sir/Madam,
I am a programmer in sharjah,uae.
Now i am working in postgresql.
I cannot able to connect to postgresql.I am pasting my code here.

Class.forName("org.postgresql.Driver");
Connection conn=DriverManager.getConnection("jdbc:postgresql://127.0.0.1/*
postgres*", "*postgres*", "sadeen");

here sadeen is my password.
But i don't know what to give where i underlined.
I am working as postgres# prompt in database.

I have created database with -- create database mydatabase;
how to use that database as use mydatabase in mysql.

Looking forward to hear from you,
Yours truly,
George

Responses

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2006-04-16 20:28:29 Re: connection problem in postgresql
Previous Message 姜维 2006-04-16 00:52:53 Re: BUG #2395: Can't get right type oid by PQftype.