> What gives this result?
> db = DAL('firebird://
sysdba:master...@127.0.0.1/c:\data\example.fdb')
This connects fine when an fb server is running:
db = DAL('firebird://
SYSDBA:mast...@127.0.0.1/k:/web2py/
fbembed.fdb')
but, when I stop the fb server and try to connect, I get this error:
OperationalError: (-902, 'isc_attach_database: \n Unable to
complete network
request to host "127.0.0.1".\n Failed to establish a connection.\n
No connection
could be made because the target machine actively refused it.')
However, this is not surprising; here is a note from the readme file
distributed with the embedded version:
2.2. Database access
Client access can be only via the local protocol,
i.e. NOT a TCP/IP connection string that includes
the server name "localhost" or IP address 127.0.0.1.
The embedded server supports only the local connect
to a database file path without a server name. The
client program gets an exclusive access to the
database file after successful connect.