Subject | Re: [ib-support] Restarting Firebird in Linux |
---|---|
Author | Jaume Sabater |
Post date | 2003-05-07T13:19:09Z |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hash: SHA1
On Wednesday 07 May 2003 14:01, Daniel Hristov Delin wrote:
> "/etc/rc.d/init.d/firebird restart",
You seem to be using Red Hat or similar. I would switch to Debian if I were
you ;-)
> Stopping Firebird Server: Your user name and password are not defined. Ask
> your database administrator to set up a Firebird login.
That happened to me, but a long time ago. I cannot remember the solution, but
I can only think of two problems:
1. The system username is not set in /etc/passwd. Firebird should be running
as, for instance, firebird (it would be a bad idea to run it as root). Try
checking what the firebird start/stop/restart script is trying to do.
2. The database username is not set. Try accessing as SYSDBA/masterkey.
Hmmm... I think now I remember something else about this error. I am afraid
you are using the script that comes in the original documentation of
Interbase (or a similar one), which tries to use system username validation
to access the database (i.e. check whether you are the right system username
so that you have "free" access to the database). I have always thought that
script sucks, so I suggest you to use something like the one that comes with
Debian (or a modified one).
Attached to this email you'll find the /etc/init.d/firebird script that comes
with Firebird 1.0.0 Debian Package (could probably been modified, as current
version is 1.0.2, but will help you anyway).
By the way, I am not sure whether start-stop-daemon exists in Red Hat (or
others than Debian), but, in a few words, what is wrong in you script is that
you need to provide a valid database SYSDBA username/password to stop the
server, but not to start it. The script assumes you don't need it for either
parts... :-/
- --
Jaume Andreu Sabater Malondra
jsabater@...
http://www.linuxsilo.net
"Ubi sapientas ibi libertas"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.2 (GNU/Linux)
iD8DBQE+uQfRVATr4IuSCZIRAlpfAJ0T70xRE8PQJUHP/oMYPfqb0rs57gCeIBMo
UFv2xowgfRm3HKRANUnNpzM=
=lwmW
-----END PGP SIGNATURE-----
[Non-text portions of this message have been removed]