Setup
MindsDB
Let’s set up the MindsDB following one of the guides from the Deployment section. Please note that the MindsDB Cloud is not yet supported.Currently, only local and on-premise installations are stable
Metabase
Now, let’s set up the Metabase by following one of the approaches presented on the Metabase Open Source Edition page. Here, we use the .jar approach for Metabase.How to Connect
Follow the steps below to connect your MindsDB to Metabase.- Open your Metabase and navigate to the Admin settings by clicking the cog in the bottom left corner.
- Once there, click on Databases in the top navigation bar.
- Click on Add database in the top right corner.
- Fill in the form using the following data:
- Click on Save.
Example
Now that the connection between MindsDB and Metabase is established, let’s do some examples. Most of the SQL statements that you usually run in your MindsDB SQL Editor can be run in Metabase as well. Let’s start with something easy. On your Metabase’s home page, click on New > SQL query in the top right corner and then, select your MindsDB database. Let’s execute the following command in the editor.CREATE DATABASE
statement fails because of the curly braces ({}
) being
used by JDBC as the escape sequences.