Connect with Metabase
On this page
Metabase is an open-source business intelligence and data visualization platform.
Prerequisites
-
A self-hosted Metabase instance, running on a local host or in a Docker container, with the required permissions.
-
An active SingleStore cluster.
-
Download the latest SingleStore Metabase driver JAR file (
singlestore.) from the SingleStore driver for Metabase GitHub repository.metabase-driver. jar
Connect Metabase to SingleStore
Note
These connection configuration steps only apply to self-hosted Metabase deployments.
To configure a SingleStore database connection in Metabase:
-
Copy the
singlestore.file to the plugins directory on the host or container where Metabase is running.metabase-driver. jar By default, Metabase uses the plugins directory under its working directory. To use a custom directory, set the MB_environment variable to the custom directory path and then copy the file to this directory.PLUGINS_ DIR -
Restart Metabase.
Metabase loads drivers during startup. -
For a Docker container, run the following command:
docker restart <container_name> -
For a non-Docker installation, restart the Metabase process.
-
-
Confirm that the SingleStore driver is now loaded in Metabase.
-
Sign in to Metabase, and select Databases > Add a database.
-
Confirm that SingleStore appears in the Database type list, and select it.
-
Under Display name, enter a name for the connection.
For example, SingleStore.
-
-
Add the SingleStore database.
Specify the following to configure the SingleStore database connection. Field
Description
Host
Hostname or IP address of the SingleStore cluster.
Port
Port of the SingleStore cluster.
The default is 3306.Database Name
Name of the SingleStore database to connect with.
Username
Username of the SingleStore database user.
Password
Password for the SingleStore database user.
(Optional) If the connection requires SSL or an SSH tunnel, configure the corresponding options in the Metabase connection settings.
For additional options, expand the Show advanced options section and specify the connection options in JDBC-compatible connection string format, for example connectTimeout=10000&socketTimeout=60000. -
Select Save to save the database connection.
Wait until Metabase synchronizes the database schema and discovers all the tables in the specified database.
The SingleStore connection is now configured in Metabase.
Browse SingleStore Data
To verify the connection and browse the SingleStore data:
-
Select New > Question.
-
Under Data, select the SingleStore connection.
-
Confirm that the expected schemas and tables are available, and then select the required table(s).
-
Create a question or run a native SQL query to verify that Metabase can read data from SingleStore.
Update the SingleStore Database Connection Configuration
To update the SingleStore database connection configuration:
-
On the Metabase Admin page, select Databases > SingleStore (name of the connection).
-
Under Connection & sync, select Edit connection details.
-
On the Edit connection details page, update the required connection configuration options.
-
Select Save changes to update the connection configuration.
The SingleStore database connection is now updated.
Troubleshooting
-
If SingleStore does not appear in the database list:
-
Confirm that the driver JAR is in the Metabase plugins directory, on the same host, or in the same container where Metabase runs.
-
Restart Metabase after copying the JAR.
-
-
If Metabase cannot connect to SingleStore:
-
Verify the connection configuration for the SingleStore database.
-
Confirm that the Metabase host can reach the SingleStore endpoint over the network.
-
Confirm that the SingleStore database user has the required permissions to connect to the database and read the database and tables.
-
If SingleStore is configured to accept only encrypted connections or an SSH tunnel, configure these options in the Metabase database connection settings.
-
-
If tables do not appear after the connection succeeds:
-
Wait for the initial schema synchronization to finish.
-
Confirm that the selected database contains the expected tables.
-
Confirm that the configured SingleStore user has permission to view the database and tables.
-
Check the Metabase logs for synchronization errors.
-
Related Topics
-
SingleStore Driver for Metabase GitHub Repository
Last modified: