Subject Re: [Firebird-Java] org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544653. cannot attach to password database
Author Marthyn Mayerhofer
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

> 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!

Regards,
Martin
2012/8/20 Mark Rotteveel <mark@...>

> **
>
>
> On 20-8-2012 14:49, Marthyn Mayerhofer wrote:
> > Hi,
> >
> > I am trying to connect to the example "employee.fdb" database on my
> ubuntu
> > system and I'm getting following exception when running the program via
> my
> > IDE (Intellij IDEA):
> >
> > Library Path: /home/rgba/git/firebird_test
> > Working Directory: /home/rgba/git/firebird_test
> >
> DriverManager.getConnection("jdbc:firebirdsql:embedded:employee.fdb?charSet=UTF-8")
> > trying
>
> > getConnection failed: org.firebirdsql.jdbc.FBSQLException: GDS Exception.
> > 335544653. cannot attach to password database
> > org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544653. cannot
> > attach to password database
>
> According to
>
> http://www.firebirdsql.org/manual/ufb-cs-embedded.html#ufb-cs-embedded-linux
> you need to have a valid security2.fdb for authentication with embedded
> on Linux (I believe this should be in the same location as
> libfbembed.so). So on Linux you will need to use a username and password
> to retrieve the connection with embedded.
>
> Mark
>
> --
> Mark Rotteveel
>
>
>


[Non-text portions of this message have been removed]