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