pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedHelp
11+ messages / 10 participants
[nested] [flat]
* Help
@ 2002-03-13 06:47 pin.o.za@mail.toyota-shokki.co.jp
0 siblings, 1 reply; 11+ messages in thread
From: pin.o.za@mail.toyota-shokki.co.jp @ 2002-03-13 06:47 UTC (permalink / raw)
To: pgsql-jdbc; pgsql-jdbc
Now i meet a problem.
I want to know if version 6.5 driver can be used on version 7.1.3 postgresql.And my program always get a error messge
(java.sql.SQLException: No pg_hba.conf entry for my host)
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Help
@ 2002-03-13 20:55 Dave Cramer <Dave@micro-automation.net>
parent: pin.o.za@mail.toyota-shokki.co.jp
0 siblings, 0 replies; 11+ messages in thread
From: Dave Cramer @ 2002-03-13 20:55 UTC (permalink / raw)
To: pin.o.za@mail.toyota-shokki.co.jp; pgsql-jdbc; pgsql-jdbc
I doubt that the 6.5 driver can be used, but that isn't your problem.
The problem is that you have not allowed the connection from your host
to the server. You need to edit the pg_hba.conf file on the server and
add your host, or network.
I would strongly recommend upgrading drivers though
Dave
-----Original Message-----
From: pgsql-jdbc-owner@postgresql.org
[mailto:pgsql-jdbc-owner@postgresql.org] On Behalf Of
pin.o.za@mail.toyota-shokki.co.jp
Sent: Wednesday, March 13, 2002 1:48 AM
To: pgsql-jdbc@postgresql.org; pgsql-jdbc@postgresql.org
Subject: [JDBC] Help
Now i meet a problem.
I want to know if version 6.5 driver can be used on version 7.1.3
postgresql.And my program always get a error messge
(java.sql.SQLException: No pg_hba.conf entry for my host)
---------------------------(end of broadcast)---------------------------
TIP 2: you can get off all lists at once with the unregister command
(send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
^ permalink raw reply [nested|flat] 11+ messages in thread
* help
@ 2002-04-22 21:05 Dave <davecox@vbstocks.com>
0 siblings, 1 reply; 11+ messages in thread
From: Dave @ 2002-04-22 21:05 UTC (permalink / raw)
To: pgsql-jdbc
I have been screwing around for three day pulling my hair out.
all i need is postgresql jdbc driver for solaris 8 intel and simple
install instructions.
when i try downloading it i get the file opened in my netscape 6.2
thanks dave
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: help
@ 2002-04-23 16:19 Nick Fankhauser <nickf@ontko.com>
parent: Dave <davecox@vbstocks.com>
0 siblings, 1 reply; 11+ messages in thread
From: Nick Fankhauser @ 2002-04-23 16:19 UTC (permalink / raw)
To: Dave <davecox@vbstocks.com>; pgsql-jdbc
Dave- it sounds like your netscape doesn't know that a .jar file should be
downloaded. I'm not sure how to tell it otherwise, but if you'll tell me
which version of the jar file you're trying to get, I'll be happy to
download it & send it to you as an e-mail attachment.
It shouldn't matter what your hardware/OS platform is- a jar file will work
as well on solaris as linux. (java is cool that way!) You just need to make
sure you have the appropriate version for your JVM and postgresql versions.
-Nick
> -----Original Message-----
> From: pgsql-jdbc-owner@postgresql.org
> [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Dave
> Sent: Monday, April 22, 2002 4:06 PM
> To: pgsql-jdbc@postgresql.org
> Subject: [JDBC] help
>
>
> I have been screwing around for three day pulling my hair out.
> all i need is postgresql jdbc driver for solaris 8 intel and simple
> install instructions.
> when i try downloading it i get the file opened in my netscape 6.2
> thanks dave
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: help
@ 2002-04-23 17:31 Tim Pizey <timp@paneris.org>
parent: Nick Fankhauser <nickf@ontko.com>
0 siblings, 0 replies; 11+ messages in thread
From: Tim Pizey @ 2002-04-23 17:31 UTC (permalink / raw)
To: Dave <davecox@vbstocks.com>; pgsql-jdbc
Dave,
My Netscape does the same, right click and 'save link as'.
cheers
timp
On Tuesday 23 April 2002 16:19, Nick Fankhauser wrote:
> Dave- it sounds like your netscape doesn't know that a .jar file should be
> downloaded. I'm not sure how to tell it otherwise, but if you'll tell me
> which version of the jar file you're trying to get, I'll be happy to
> download it & send it to you as an e-mail attachment.
>
> It shouldn't matter what your hardware/OS platform is- a jar file will work
> as well on solaris as linux. (java is cool that way!) You just need to make
> sure you have the appropriate version for your JVM and postgresql versions.
>
> -Nick
>
> > -----Original Message-----
> > From: pgsql-jdbc-owner@postgresql.org
> > [mailto:pgsql-jdbc-owner@postgresql.org]On Behalf Of Dave
> > Sent: Monday, April 22, 2002 4:06 PM
> > To: pgsql-jdbc@postgresql.org
> > Subject: [JDBC] help
> >
> >
> > I have been screwing around for three day pulling my hair out.
> > all i need is postgresql jdbc driver for solaris 8 intel and simple
> > install instructions.
> > when i try downloading it i get the file opened in my netscape 6.2
> > thanks dave
> >
> >
> > ---------------------------(end of broadcast)---------------------------
> > TIP 1: subscribe and unsubscribe commands go to majordomo@postgresql.org
>
> ---------------------------(end of broadcast)---------------------------
> TIP 2: you can get off all lists at once with the unregister command
> (send "unregister YourEmailAddressHere" to majordomo@postgresql.org)
^ permalink raw reply [nested|flat] 11+ messages in thread
* help
@ 2002-07-08 12:38 Kourtalis Nikolaos <ellan41@port.ac.uk>
0 siblings, 0 replies; 11+ messages in thread
From: Kourtalis Nikolaos @ 2002-07-08 12:38 UTC (permalink / raw)
To: pgsql-jdbc
Plesae help me..
I don't understand what is JDBC..?!!
Thanks for your time..
^ permalink raw reply [nested|flat] 11+ messages in thread
* Help!!
@ 2003-03-13 09:15 Albert B. Tingson III <albert.tingson@mayniladwater.com.ph>
0 siblings, 1 reply; 11+ messages in thread
From: Albert B. Tingson III @ 2003-03-13 09:15 UTC (permalink / raw)
To: pgsql-jdbc
can you plss help me. Can anyone give me java code for connection pooling in postgres database. I need it for our project in our company..Thanks!!!!
Attachments:
06_side.gif (image/gif, 8.4K) download
view image
IMSTP.gif (image/gif, 494B) download
view image
06_b.jpg (image/jpeg, 1.5K) download
view image
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: Help!!
@ 2003-03-13 09:31 Dave Cramer <Dave@micro-automation.net>
parent: Albert B. Tingson III <albert.tingson@mayniladwater.com.ph>
0 siblings, 0 replies; 11+ messages in thread
From: Dave Cramer @ 2003-03-13 09:31 UTC (permalink / raw)
To: Albert B. Tingson III <albert.tingson@mayniladwater.com.ph>; +Cc: pgsql-jdbc
If you look through the archives there are some examples,
The driver itself implements pooling.
Dave
On Thu, 2003-03-13 at 04:15, Albert B. Tingson III wrote:
>
> can you plss help me. Can anyone
> give me java code for connection
> pooling in postgres database. I
> need it for our project in our
> company..Thanks!!!!
>
>
>
>
>
> ____________________________________________________
> IncrediMail - Email has finally evolved - Click Here
--
Dave Cramer <Dave@micro-automation.net>
^ permalink raw reply [nested|flat] 11+ messages in thread
* help
@ 2010-07-27 11:50 fatih durum <fatihdurum@hotmail.com>
0 siblings, 2 replies; 11+ messages in thread
From: fatih durum @ 2010-07-27 11:50 UTC (permalink / raw)
To: pgsql-jdbc
hi ;
ý have a problem of my connection to postgresql.ý read your documentation of your web site but ý dont understand what am ý connected to postgresql.ý downloaded the driver of jdbc but ý didnt find what do ý this driver.Do you explain the connection with an example ?
thanks a lot nowly;
your sincerely....
_________________________________________________________________
Yeni Windows 7: Size en uygun bilgisayarý bulun. Daha fazla bilgi edinin.
http://windows.microsoft.com/shop
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: help
@ 2010-07-27 14:56 Kevin Grittner <Kevin.Grittner@wicourts.gov>
parent: fatih durum <fatihdurum@hotmail.com>
1 sibling, 0 replies; 11+ messages in thread
From: Kevin Grittner @ 2010-07-27 14:56 UTC (permalink / raw)
To: fatih durum <fatihdurum@hotmail.com>; pgsql-jdbc
fatih durum <fatihdurum@hotmail.com> wrote:
> * have a problem of my connection to postgresql.* read your
> documentation of your web site but * dont understand what am *
> connected to postgresql.* downloaded the driver of jdbc but *
> didnt find what do * this driver.Do you explain the connection
> with an example ?
The documentation has examples; for instance:
http://jdbc.postgresql.org/documentation/84/connect.html
It's hard to tell what you have tried and what problems you're
having. Please read this for ideas on what information you could
give us to allow us to be more helpful:
http://wiki.postgresql.org/wiki/Guide_to_reporting_problems
-Kevin
^ permalink raw reply [nested|flat] 11+ messages in thread
* Re: help
@ 2010-07-27 16:44 dmp <danap@ttc-cmc.net>
parent: fatih durum <fatihdurum@hotmail.com>
1 sibling, 0 replies; 11+ messages in thread
From: dmp @ 2010-07-27 16:44 UTC (permalink / raw)
To: fatih durum <fatihdurum@hotmail.com>; pgsql-jdbc
>
>
>fatih durum <fatihdurum@hotmail.com> wrote:
>
>
>
>>> * have a problem of my connection to postgresql.* read your
>>> documentation of your web site but * dont understand what am *
>>> connected to postgresql.* downloaded the driver of jdbc but *
>>> didnt find what do * this driver.Do you explain the connection
>>> with an example ?
>>
>>
Attached Java class example. Make sure the JDBC JAR file is in your
classpath or just place in the JRE lib/ext directory.
danap.
Attachments:
PostgreSQL_JDBC.java (text/plain, 5.0K) download
//=================================================================
// PostgreSQL_JDBC Class
//=================================================================
//
// This class is used to control the running of a generic
// class to access the PostgreSQL database.
//
// << PostgreSQL_JDBC.java >>
//
//=================================================================
// Copyright (C) 2005-2010 Dana M. Proctor
// Version 1.02 07/27/2010
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version
// 2 of the License, or (at your option) any later version. This
// program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty
// of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See
// the GNU General Public License for more details. You should
// have received a copy of the GNU General Public License along
// with this program; if not, write to the Free Software Foundation,
// Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
// (http://opensource.org)
//
//=================================================================
// Revision History
// Changes to the code should be documented here and reflected
// in the present version number. Author information should
// also be included with the original copyright author.
//=================================================================
// Version 1.0 12/23/2008 PostgreSQL Connection Main Application.
// 1.1 02/13/2010 Generalized to be Used With Any Test Case.
// 1.2 03/15/2010 Explicit Exception Output in main() & No
// New Instance for Class.forName().
// 1.3 07/27/2010 Reviewed Just Updated Format Comments.
//
//-----------------------------------------------------------------
// danap@dandymadeproductions.com
//=================================================================
//=================================================================
// PostgreSQL_JDBC Application
//=================================================================
import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.SQLException;
/**
* The PostgreSQL class is used to control the running of a generic
* class to access the PostgreSQL database. Arguments -debug.
*
* @author Dana M. Proctor
* @version 1.3 07/27/2010
*/
class PostgreSQL_JDBC
{
// ============================================
// Creation of the necessary class instance.
// =============================================
// None.
//==============================================================
// PostgreSQL_JDBC Constructor
//==============================================================
public PostgreSQL_JDBC(Connection con)
{
// Constructor Instances.
// Perform Test or Do Something.
/*
try
{
// Do Insert whatever.
}
catch (SQLException sqle)
{
System.out.println("SQL Exeception" + sqle);
}
catch (IOException ioe)
{
System.out.println("Failed to Open File." + ioe);
}
*/
}
//============================================================
// Main public access point method for instantiating the
// PostgreSQL_JDBC application. Arguments: database, username,
// & password.
//==============================================================
public static void main(String[] args)
{
String host, database, username, password;
Connection dbConnection;
// Collect connection properties. and setup connection.
host = "localhost";
dbConnection = null;
if (args.length != 0)
{
database = args[0];
username = (args.length > 1) ? args[1] : null;
password = (args.length > 2) ? args[2] : null;
}
else
{
database = "";
username = "";
password = "";
}
try
{
Class.forName("org.postgresql.Driver");
}
catch (ClassNotFoundException cne) {System.out.println("ClassNotFoundException"
+ cne.toString());}
// Try to make a connection.
try
{
dbConnection = DriverManager.getConnection("jdbc:postgresql://" + host + "/" + database,
username, password);
// Connection Good.
if (dbConnection != null)
{
System.out.println("Connection Created");
// Go Do Something.
new PostgreSQL_JDBC(dbConnection);
// Close.
dbConnection.close();
System.out.println("Connection Closed");
}
}
catch (SQLException sqle) {System.out.println("SQLExeception" + sqle.toString());}
}
}
^ permalink raw reply [nested|flat] 11+ messages in thread
end of thread, other threads:[~2010-07-27 16:44 UTC | newest]
Thread overview: 11+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2002-03-13 06:47 Help pin.o.za@mail.toyota-shokki.co.jp
2002-03-13 20:55 ` Dave Cramer <Dave@micro-automation.net>
2002-04-22 21:05 help Dave <davecox@vbstocks.com>
2002-04-23 16:19 ` Re: help Nick Fankhauser <nickf@ontko.com>
2002-04-23 17:31 ` Re: help Tim Pizey <timp@paneris.org>
2002-07-08 12:38 help Kourtalis Nikolaos <ellan41@port.ac.uk>
2003-03-13 09:15 Help!! Albert B. Tingson III <albert.tingson@mayniladwater.com.ph>
2003-03-13 09:31 ` Re: Help!! Dave Cramer <Dave@micro-automation.net>
2010-07-27 11:50 help fatih durum <fatihdurum@hotmail.com>
2010-07-27 14:56 ` Re: help Kevin Grittner <Kevin.Grittner@wicourts.gov>
2010-07-27 16:44 ` Re: help dmp <danap@ttc-cmc.net>
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox