Quantcast
Channel: Active questions tagged amazon-ec2 - Stack Overflow
Viewing all articles
Browse latest Browse all 29250

Connect MySQL database in AWS EC2 for Apache SuperSet

$
0
0

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

  1. I have a server having mysql data source and i am also launching superset from the same server.
  2. I have added an inbound rule with 0.0.0.0 ip address on port 8088.
  3. I have launched superset successfully with superset run -h 0.0.0.0 -p 8088 --with-threads --debugger --reload
  4. 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)
  5. 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)
  6. 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}"


Viewing all articles
Browse latest Browse all 29250

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>