If you installed  your Superset (Caravel) BI Tool with Heroku and if you are finding it difficult to initially populate your MySQL database tables with Data and you will be using MySQL the default database that come with your installation, then you can follow these steps to get data into Superset.

(By the way, you may visit this post on quick guide to installing Superset with Heroku: Superset Caravel BI Tool Installation and Visualizations on Heroku)

  1. Log into your Heroku account and in the far right hand corner locate your account and click on Dashboard 
  2. You will see all your apps in the dashboard. 
  3. Click on Resources and click the “JawsDB MySQL” database. 
  4. You will get a window which will give  you all the parameters you will need to connect to  your Superset MySQL database 
  5. Follow the onscreen instruction and download and install MySQL Workbench 
  6. Once the MySQL Workbench is installed , you can now use the connections parameters provided to connect the workbench to your Superset MySQL database hosted on Heroku 
  7. Once you have filled all the sections and you have tested the connection and it works fine, connect to the database and check the schema inside the WorkBench
  8. The schema you will see in the MySQL Workbench will be same schema you will find in your Superset database. Example is as in this 
  9. Now you can create your tables in the schema and insert data into it all inside the Workbench. (If you want to experiment with sample data, you can generate some from here with a complete insert statements. Visit this site) After that click on the refresh button next to the word SCHEMA. 
  10.  You can preview your newly created table and check your data in the WorkBench 
  11. Once data is showing fine in your MySQL Workbench you can visit SuperSet SQL Lab and check your data showing there 
  12. You can then follow the Superset tutorial to start your visualizations
  13. Below is a “playaround” dashboard, generated with Superset installation on Heroku

Similar Posts

Leave a Reply

Your email address will not be published. Required fields are marked *