I am exploring Apache SuperSet. I want to connect to MySQL database on server i.e., EC2 instance. I have installed all the required libraries based on https://superset.incubator.apache.org/installation.html.I did go through https://docs.sqlalchemy.org/en/12/core/engines.html#database-urls. Although I have the library, yet when I try to connect the MySQL it says "No module named 'MySQLdb'".
I am wondering if URL mysql://{username}:{password}@{ip address of ec2 instance}/{database name}
itself is right?
Steps followed
I have a server having MySQL data source and I am also launching superset from the same server.
I have added an inbound rule with 0.0.0.0 IP address on port 8088.
I have launched superset successfully with
superset run -h 0.0.0.0 -p 8088 --with-threads --debugger --reload
After this I tried creating a new data source on the superset, the data source is MySQL on the same ec2 instance. (I will also need to connect to another data source on another server)
I used the following as recommended:
mysql://username:password@host:3306/dbname
(additional info: in /etc/mysql/my.cnf the following is already configuredport:3306,bind-address:127.0.0.1
)On testing connection, got error
The new error I am getting
Connection failed!
The error message returned was:
(MySQLdb._exceptions.OperationalError) (2003, \"Can't connect to MySQL server on {ip address}