How to connect to Firebird embedded in SQLAlchemy

I'm trying to connect to firebird (inline version) using Flask-SQLAlchemy, but I keep getting 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:

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

      

I also tried from localhost, same error.

Any hints what I am doing wrong?

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

I have also tried without providing the username password as it is inline verion still not working

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

      

+3


source to share





All Articles