Why can't I connect to the Hana database through Python but can through Hana Studio?

56 Views Asked by At

I have the following setup in Hana Studio and the connection works:

enter image description here

enter image description here

As you can see I selected "Multiple containers" and "Tenant database".

My python code is:


from hdbcli import dbapi

conn1 = dbapi.connect(
    address='the same as hdb studio', 
    port=30015, 
    user='User', 
    password='*****',
    databasename='HCE'

But I'm getting the following error:

Error: (-10709, "Connection failed (RTE:[89006] System call 'connect' failed, rc=10061:No connection could be made because the target machine actively refused it {0.0.0.0:55875 -> 192.160.50.98:30015} (0.0.0.0:55875 -> 192.160.50.98:30015))")

Any ideas, it could by because the Tenant database?

Thank you so much!

0

There are 0 best solutions below