How-To Guides
...
Create Your Own Report with Re...
Connecting to a New Database
5 min
this is the first step of creating your own report with the reporting module we assume you already have a database configured and can connect to it from the instance on which you’re running superset if you’re just testing superset and want to explore sample data, you can load some sample postgresql datasets into a fresh db or configure the example weather data we use here to connect to a database under the sources menu, select the databases option on the resulting page, click on the green plus + sign near the top right you can configure several advanced options on this page, but for this walkthrough, you’ll only need to do two things name your database connection provide the sqlalchemy connection uri and test the connection the example uri in the figure above is the connection string for our test weather database as noted in the text below the uri field, you should refer to the sqlalchemy documentation on creating new connection uris for your target database click the test connection button to confirm things work end to end once superset can successfully connect and authenticate, you should see a popup like this moreover, you should also see the list of tables superset can read from the schema you’re connected to at the bottom of the page if the connection looks good, save the configuration by clicking the save button at the bottom of the page