Re: Firebird JDBC issue

Marc Santhoff <[email protected]>
Newsgroups gmane.comp.openoffice.dba.user
Message-ID <[email protected]>
Am Sonntag, den 28.05.2006, 11:01 -0400 schrieb Eron Lloyd:
> Hello,
> 
> I'm trying to get OOo working with the Firebird RDBMS, using Firebird's JDBC 
> driver Jaybird. I've added all the JAR files to the classpath properly and 
> tested the class to see if it works (it does). However, once I add the DB URL 
> firebirdsql:127.0.0.1/3050:/opt/firebird/examples/employee.fdb and try to 
> test the connection, I get a JDBC UnknownHostException, whether I use 
> "localhost" or the IP. Just to be sure, I tried the same with MySQL and JDBC 
> and initially got the same error. After switching to the IP however, I can 
> now access the DB.
> 
> I don't think it is a network issue, as I can access Firebird using the same 
> URL as above with the isql shell utility. Is this a deeper problem with Java 
> or the JDBC? I find it odd that an IP works for MySQL but not Firebird, 
> especially.

Try like this:

firebirdsql://localhost/home/marc/testme.gdb

As far as the driver class is named correctly
(org.firebirdsql.jdbc.FBDriver) you should be done by adding two slashes
befor the servers name.

HTH,
Marc
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.