By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
464,302 Members | 1,299 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 464,302 IT Pros & Developers. It's quick & easy.

connect to remote db

P: n/a

I want to connect to database repl_isar located in host isar from host
willy. So I wrote:

String url = "jdbc:postgresql://isar/repl_isar";
conn = DriverManager.getConnection(url,username,password) ;

But it fails by given error both in postmaster running repl_isar and local
site willy.

java.sql.SQLException: User authentication failed

If I tried local database url="repl_willy", the same username and password
work well.

I did run "createuser" script and even run SQL "create user ..".

What do I missed?


Yi Lin

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

Nov 11 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.