Search code examples
firebirdfirebird-3.0

Firebird default user not set


When I try anything in isql, I get the message:

Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
unable to open database

When I try to create the user I still get the message:

C:\Program Files\Firebird\Firebird_3_0>gsec -user sysdba -password masterkey
use gsec -? to get help
Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
unable to open database

But I am the administrator, and I installed it.

How do I create the user SYSDBA in Firebird?


Solution

  • The combination of the "Your user name and password are not defined. Ask your database administrator to set up a Firebird login." with "unable to open database" does not mean the SYSDBA account does not exist, it means that the Firebird process was unable to open the security database to perform authentication.

    This can happen if you installed Firebird in C:\Program Files, and you are running the Firebird server as an application (instead of as a service) and UAC is enabled, or you are running as a service, but the user account running the service has insufficient rights to read and write to the security3.fdb file.

    You either need to run Firebird as a service (e.g. as configured by the installer), or - if you really want to run Firebird as an application - install Firebird outside of C:\Program Files.