Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Superset cannot connect to my MSSQL database

After installing Superset (open source software from Airbnb) on my virtual machine (RHEL, Linux 7.2-11), I cannot add my MSSQL database in the configuration page.

Menu->Sources->Databases->Add

In the SQLAlchemy URI field, I entered :

mssql+pymssql://user:password@host:port/database

Obviously, with my user, password, host, port and database name.

But when I click "Test Connection" I have the following error :

ERROR: {"error": "Connection failed!
The error message returned was:
(pymssql.OperationalError) (18456, 'DB-Lib error message 20018, severity 14:\
General SQL Server error: Check messages from the SQL Server\
DB-Lib error message 20002, severity 9:\
Adaptive Server connection failed (host:port)')"}

I already installed the pymssql package and I do not really know where this error could come from.

I tried to follow these tutorials but, maybe I'm doing it wrong:

http://airbnb.io/superset/installation.html

http://airbnb.io/superset/tutorial.html#connecting-to-a-new-database

like image 226
LaPalme Avatar asked Nov 07 '25 10:11

LaPalme


1 Answers

What worked for me is the following:

mssql+pymssql://user:[email protected]/?charset=utf8

However, I didn't manage to define a database using this syntax, and in turn couldn't define/find the available tables.

like image 169
Dror Avatar answered Nov 10 '25 00:11

Dror