Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-bugs by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group