Re: Postgreslq Driver in Java & Windows
От | Doug McNaught |
---|---|
Тема | Re: Postgreslq Driver in Java & Windows |
Дата | |
Msg-id | m3fzpf47j2.fsf@varsoon.wireboard.com обсуждение исходный текст |
Ответ на | Postgreslq Driver in Java & Windows ("Kevin" <kvhui@msn.com>) |
Список | pgsql-general |
"Kevin" <kvhui@msn.com> writes: > Hi, > > I am a student who just learned Java and its JDBC capability. > > I got a sample Java files which uses postgresql driver, I also got a > psqlodbc driver for Windows (2000 or XP) from: > http://gborg.postgresql.org/project/psqlodbc/genpage.php?downloads and get > it installed. > > I wonder if I can run the java program in the above environment. Below are > some sample codes extract from the sample java file. > > When I run this program, I got an error like "connection rejected, please > check host and port and make sure the postmaster used the -i option when > opening the TCP/IP networking function" (This error message is originally in > Chinese). > > May I know is that a setup problem and if so, how can I correct it? Or, > must I install a Postres database? If so, is there any trial version for > Windows? I don't have the localhost/data_mining directory but I don't know > where should I create this directory. You need to have a PostgreSQL server to connect to. The current version of the server runs on Windows using the Cygwin libraries--it's not production quality but should be fine for development work. You should be able to download binaries for Windows through www.postgresql.org. -Doug
В списке pgsql-general по дате отправления: