Subject | Re: how to set forcedwrites=off |
---|---|
Author | judlian23 |
Post date | 2008-11-12T00:58:06Z |
So now I try
manager.createDatabase((databasePath), "SYSDBA", "masterkey");
//manager is a FBManager, note params not included in argument
DriverManager.getConnection(databasePath+params)
Any idea what's wrong with this one? I reinstalled firebird to make
sure that I was setting the password to what I am typing in. Is the
rror message saying it cant attach to a database with a password or
that the password isn't working?
ERROR MESSAGE:
CreateDatabase databasePath: /home/jbu/dbtesting/data/firebirddb.fdb
Nov 11, 2008 4:43:03 PM Main createDatabase
SEVERE: null
org.firebirdsql.gds.GDSException: cannot attach to password database
at
org.firebirdsql.gds.impl.jni.JniGDSImpl.native_isc_create_database(Native
Method)
at
org.firebirdsql.gds.impl.jni.BaseGDSImpl.iscCreateDatabase(BaseGDSImpl.java:269)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.firebirdsql.gds.impl.jni.GDSSynchronizationPolicy$AbstractSynchronizationPolicy.invoke(GDSSynchronizationPolicy.java:121)
at $Proxy0.iscCreateDatabase(Unknown Source)
at
org.firebirdsql.management.FBManager.createDatabase(FBManager.java:383)
at Main.createDatabase(Main.java:48)
at Main.main(Main.java:232)
manager.createDatabase((databasePath), "SYSDBA", "masterkey");
//manager is a FBManager, note params not included in argument
DriverManager.getConnection(databasePath+params)
Any idea what's wrong with this one? I reinstalled firebird to make
sure that I was setting the password to what I am typing in. Is the
rror message saying it cant attach to a database with a password or
that the password isn't working?
ERROR MESSAGE:
CreateDatabase databasePath: /home/jbu/dbtesting/data/firebirddb.fdb
Nov 11, 2008 4:43:03 PM Main createDatabase
SEVERE: null
org.firebirdsql.gds.GDSException: cannot attach to password database
at
org.firebirdsql.gds.impl.jni.JniGDSImpl.native_isc_create_database(Native
Method)
at
org.firebirdsql.gds.impl.jni.BaseGDSImpl.iscCreateDatabase(BaseGDSImpl.java:269)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:597)
at
org.firebirdsql.gds.impl.jni.GDSSynchronizationPolicy$AbstractSynchronizationPolicy.invoke(GDSSynchronizationPolicy.java:121)
at $Proxy0.iscCreateDatabase(Unknown Source)
at
org.firebirdsql.management.FBManager.createDatabase(FBManager.java:383)
at Main.createDatabase(Main.java:48)
at Main.main(Main.java:232)
--- In Firebird-Java@yahoogroups.com, Roman Rokytskyy <roman@...> wrote:
>
> > As always, I appreciate the help and quick responses, Roman.
> >
> > I am trying: trying
> >
DriverManager.getConnection("jdbc:firebirdsql:embedded:/home/jbu/dbtesting/data/firebirddb.fdb?force_write=0");
> >
> > and getting error message attached to this message.
> >
> > Anyone know what's going on?
>
> Yes. You try to create database using the string that is extracted from
> the JDBC URL, but you have forgotten to strip the parameters...
>
> Roman
>