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? Please help me with how to proceed?
added info: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 configured port:3306,bind-address:127.0.0.1)
- On testing connection, got error
the new error i am getting -"Connection failed!\n\nThe error message returned was:\n(MySQLdb._exceptions.OperationalError) (2003, \"Can't connect to MySQL server on {ip address}"