I am trying to connect to firebird(embedded version) with Flask-SQLAlchemy 
but I keep geting the error :

sqlalchemy.exc.DatabaseError: (fdb.fbcore.DatabaseError) ('Error while 
connecting to database:\n- SQLCODE: -902\n- Unable to complete network request 
to host "127.0.0.1".\n- Failed to establish a connection.', -902, 335544721)

My connection variable is:

SQLALCHEMY_DATABASE_URI ='firebird://sysdba:masterkey@127.0.0.1:3050/' + 
os.path.join(basedir, 'data.fdb')

I also tried with localhost, same error. 

Any clue what I am doing wrong?

This is on Windows 7 using firebird 2.5 ,Flask-SQLAlchemy 2.0 and 
SQLAlchemy==1.0.3

I also tried without supplying a username password since it's the embedded 
verion, still not working

SQLALCHEMY_DATABASE_URI ='firebird://127.0.0.1:3050/' + os.path.join(basedir, 
'data.gdb')

It was mentionned on stackoverflow that it might be trying to connect to a full 
server when I specify localhost, and not the embedded version.
 But if I removed localhost(and replace it with simple "/", it extract the host 
computer name and tries to connect to that instead, so it 
gives the same error.

Thanks

-- 
You received this message because you are subscribed to the Google Groups 
"sqlalchemy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sqlalchemy+unsubscr...@googlegroups.com.
To post to this group, send email to sqlalchemy@googlegroups.com.
Visit this group at http://groups.google.com/group/sqlalchemy.
For more options, visit https://groups.google.com/d/optout.

Reply via email to