jvanulden opened a new issue #11774:
URL: https://github.com/apache/incubator-superset/issues/11774


   I followed the instructions on the docker hub page for creating a container 
with mysqlclient installed. I ran the container, went through the configuration 
and ran init. Superset is up and running. Then I try to add a local connection 
to a MySQL database using a connection parameters that work in two other 
clients. I keep getting the following error:
   
       ERROR: Connection failed, please check your connection settings
   
   Connection string is:
   
       mysql://admin:admin@localhost/mydb
   
   ### Expected results
   
   Connection to the database
   
   ### Actual results
   
   No connection
   
   #### Screenshots
   
   
   #### How to reproduce the bug
   
   1. Extend the image on docker hub. Create a Dockerfile as follows:
   
    ```
       FROM apache/incubator-superset
   
       USER root
   
       RUN pip install mysqlclient
   
       USER superset
   ```
   
   2. Build the image
   3. Run the container
   4. Add a new database connection
   5. See the error
   
   ### Environment
   
   - superset version: `latest`
   - MacOS
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [X] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [X] I have reproduced the issue with at least the latest released version 
of superset.
   - [X] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   ### Additional context
   
   ```
   Connection failed
   
   WARNING:superset.databases.api:Connection failed
   
   172.17.0.1 - - [21/Nov/2020:18:20:06 +0000] "POST 
/api/v1/database/test_connection HTTP/1.1" 500 71 
"http://localhost:8080/databaseview/list/?filters=%5B%5D&pageIndex=0&sortColumn=changed_on_delta_humanized&sortOrder=desc";
 "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/605.1.15 (KHTML, 
like Gecko) Version/14.0 Safari/605.1.15"
   ```
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to