webForumDet fria alternativet

Starta postgreSQL med -i flagga?

0 svar · 459 visningar · startad av Poppe25

Poppe25Medlem sedan apr. 2002255 inlägg
#1

Hej skulle vilja veta hur man ska göra följande på Mac OS X, nämligen starta upp PostgreSQL med -i flaggan. Syftet är att implementera en java-klass som kopplar upp sig mot PostgreSQL.

Bifogar kommentar från han som skrivit klassen.

/**
* The TestPostgreSQL class shows how to access the PostgreSQL
* DB server on Mac OS X using the JDBC interface.
* It assumes the installation has been performed according
* to the instructions at http://www.entropy.ch/software/macosx/postgresql.
*
*
* You compile it like this:
*
* % javac TestPostgreSQL.java
*
* Make sure that the PostgreSQL server has been
* started with the -i flag. This is not the case in
* the example lines of the installation instructions mentioned
* above and in the StartupItem package that's available
* from the same location. The -i flag tells the DB server
* to listen for connection requests from the network
* and I have left it off by default for security reasons.
*
* If the server is running correctly (with -i), run the Test like this:
* (in the same directory where you compiled the example)
*
* % java -classpath /usr/local/pgsql/share/java/postgresql.jar:. TestPostgreSQL
*
* You should see the current date as returned by the DB server:
*
* 2001-06-23 16:31:49+02
*
*
* @author Marc Liyanage
* @version 1.0
*/

126 ms totalt · 3 externa anrop · v20260731065814-full.beb2e261
0 ms — hämta forumlista (cache)
0 ms — hämta statistik (cache)
124 ms — hämta tråd, inlägg och bilagor (db)