Subject | Re: [Firebird-Java] org.firebirdsql.jdbc.FBSQLException: GDS Exception. 335544653. cannot attach to password database |
---|---|
Author | Marthyn Mayerhofer |
Post date | 2012-08-21T07:52:42Z |
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:
call
Thanks for pointing me in the right direction!
Regards,
Martin
2012/8/20 Mark Rotteveel <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-classic2. removed the username and password from the DriverManager.getConnection()
call
> Connection bd = DriverManager"jdbc:firebirdsql:embedded:/home/rgba/git/firebird_test/employee.fdb",
> .getConnection(
>
> "" , "");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@...>
> **[Non-text portions of this message have been removed]
>
>
> 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
>
>
>