Connecting to MySQL
This topic describes how to import data into Sisense's ElastiCube, and how to use Introducing Live Models.
Sisense enables easy and quick access to databases, tables and views contained with MySQL databases. Sisense supports connections to MySQL V5.6 and later. However, to use custom columns or tables in Live with MySQL, then you need MySQL V8.0+.
Note:
For the list of supported connectors, see Data Source Connectors.
You can import your data into a Sisense ElastiCube, or connect your data to a Sisense Live model, using Introducing Live Models.
To import data from your MySQL database:
- In the Data page, open an ElastiCube or create a new ElastiCube.
-
In the Model Editor, click . The Add Data dialog box is displayed.
-
Click MySQL; the MySQL Connect area is displayed.
Note:
The connection options available to you depend on your Sisense deployment.
-
Enter the following details:
-
Location: Enter the computer/server IP address of the database. To connect to a database running on your own computer enter localhost.
-
If Windows Authentication is configured with the database in the User Name and Password fields, enter your database credentials.
-
-
(Optional) Select Use SSL if you are connecting to an SSL server. Enter the relevant information to configure verification between the client and the MySQL server over SSL:
-
In the Private Key field, enter the path of the location of your file containing the your private key.
-
In the Certificate field, enter the path of the location of your PEM file containing the client's certificate.
-
In the Authority field, enter the path of the location of your PEM file containing the trusted SSL certificate authority.
-
-
Click . A list of tables in the database are displayed. All tables and views associated with the database appears in a new window.
-
From the Tables list, select the relevant table or view you want to work with. You can click next to the relevant table or view to see a preview of the data inside it. When you select the table or view, two new options are displayed at the bottom of the list, Import Relationships and Add Custom Import SQL.
-
(Optional) By default, existing relationships between tables are automatically replicated in the ElastiCube. You can disable this by toggling the Import Relationships switch.
-
(Optional) Click + to customize the data you want to import with SQL. See Importing Data with Custom Queries for more information.
-
After you have selected all the relevant tables, click Done . The tables are added to your schema in Sisense.
To add a MySQL live connection:
- Open a live model. See Creating Live Models and Adding Live Connections for more information.
- In the Model Editor, click .
- In the Add Live Connection dialog box, select MySQL.
-
Under the Connect tab, enter the following credentials:
- Location: The IP address of your data source.
- User Name: The user name to access data source.
- Password: The password to access your data source.
- Click Next.
- Under the Select Data tab, on the left side is a list of schemas located in your data source. Select the relevant schema. You can find the schema easily by searching for it through the search field at the top of the list to filter the schemas displayed. After selecting the schema, a list of the available tables and views are displayed.
- Select a table or view. You can find the table easily by searching for it through the search field at the top of the list to filter the tables displayed.
- Click Done. The table is added to the model.
See Publishing Live Models for information about how to publish the model and begin creating visualizations with it.
Limitations
- Performing a top/bottom ranking filter on widgets requires version 8 or higher of the live connected MYSQL database. As a workaround for this, you can import your data into the ElastiCube.
Sisense uses MySQL JDBC Driver to establish the connection with the MySQL data source (applies to
both ElastiCube and Live).
For information about additional parameters that can be used, see this section of the MySQL Connector Developer Guide.