Subject | Re: Connection hang on connecting to the database. |
---|---|
Author | rrokytskyy |
Post date | 2002-08-07T17:24:39Z |
--- In Firebird-Java@y..., Chuck.Li@l... wrote:
jdbc:interbase://localhost/c:/jdb/TEST.GDB
If you use '\' do not forget to escape it, but InterClient is happy
with '/' even on Windows. Also do not forget to start InterServer on
the same host with database server. It listens on port 3060. This is
the standard port for InterClient. Port 3050 belongs to Firebird
server, not InterClient.
Best regards,
Roman Rokytskyy
> I just installed a firebird database and I was able to createURL should be:
> database using IBConsole and create tables.
>
> When I tried to connect to the database using
> interbase.interclient.Driver, the connection hang on
> java.sql.DriverManager.getConnection(dbURL, user,
> password).
>
> dbURL is: jdbc:interbase://<machinename or
> localhost>:3050/C:\jdb\TEST.GDB.
> I am using Windows 2000 and the database and the java program are
> actually on the same machine.
>
> I wonder what could be wrong with my installation and/or database
> setup.
jdbc:interbase://localhost/c:/jdb/TEST.GDB
If you use '\' do not forget to escape it, but InterClient is happy
with '/' even on Windows. Also do not forget to start InterServer on
the same host with database server. It listens on port 3060. This is
the standard port for InterClient. Port 3050 belongs to Firebird
server, not InterClient.
Best regards,
Roman Rokytskyy