Subject Re: [Firebird-Java] org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544653. cannot attach to password database
Author Mark Rotteveel
On Tue, 21 Aug 2012 09:52:42 +0200, Marthyn Mayerhofer <martin@...>
wrote:
> Hi Mark,
>
> after some trial and error I got it working on my dev box, here is what
I
> did for future reference:
>
> 1. installed firebird-2.5 classic server:
>
>> apt-get install firebird2.5-classic
>
> 2. removed the username and password from the
DriverManager.getConnection()
> call

Good to hear you got it working, but depending on the server-install to
get embedded working is not ideal. I will put this on my todo list to
investigate what is necessary to get embedded running on Linux without
having to depend on a server-install.

Also be aware that in Firebird you can assign rights to a specific user or
role, if that is done and you use the database under embedded you do need
to specify a username (and I assume for Linux also the correct password).

>> Connection bd = DriverManager
>> .getConnection(
>>
> "jdbc:firebirdsql:embedded:/home/rgba/git/firebird_test/employee.fdb",
>> "" , "");
>
> now I am able to access the employee.fdb test database.
>
> Thanks for pointing me in the right direction!

You're welcome!

Mark