- Connect BI Tools >
- Connect from Tableau Desktop
Connect from Tableau Desktop¶
On this page
Prerequisites¶
Before using Tableau with BI Connector you should have:
A running mongod instance or Atlas deployment
A running
mongosqld
instanceThe MySQL Connector/ODBC driver (Version 5.3.10)
Important
The BI Connector is only compatible with version 5.3.x of the MySQL Connector/ODBC driver.
New in version 2.2.
Connect from Tableau with the C Authentication Plugin¶
Download the C Authentication Plugin library.¶
Navigate to the releases page
then download the mongosql_auth
plugin library.
macOS | Save the library file If this directory does not exist, create it: Example Note This example assumes you downloaded the
The plugin does not require MySQL or the MySQL ODBC Connector to be installed. |
---|---|
Windows | Run the Windows installer (.msi ). |
Create a MySQL Configuration file. (macOS only)¶
Create a text file with the following contents:
Save the file to
/etc/my.cnf
.
Create a Tableau Datasource Connection file.¶
Create a text file with the following contents:
Platform TDC File Contents macOS Windows Save this file as
mongodb.tdc
in the My Tableau Repository for your platform:Platform Default TDC Save Path macOS /Users/{name}/Documents/My Tableau Repository/Datasources
Windows C:\Users\{username}\Documents\My Tableau Repository\Datasources
Start Tableau.¶
Start the Tableau Desktop application or restart it if it was already running.
Important
Any time you change a .tdc
file, you must restart the Tableau
Desktop application for those changes to take effect.
Connect using Tableau.¶
In the left-side navigation under To a server, click on More… then click MongoDB BI Connector.
In the connection dialog box:
Field Action Server Type the hostname or IP address of the MongoDB Connector for BI host. Port Type the IANA port number for the MongoDB Connector for BI. The default is 3307
.Username Type the username for the user that can access the active MongoDB Connector for BI database.
Unless you specified a
defaultMechanism
in your MongoDB Connector for BI Configuration File, you must append the authenticating database to the username.Example
The user
myTestUser
is authenticated against thetest
database.- If you are using Username and Password (
SCRAM-SHA-1
) authentication, the expected authenticating database isadmin
. - If you are using LDAP (
PLAIN
) authentication, the expected authenticating database is$external
.
Password Type the password associated with the Username. - If you are using Username and Password (
Click Sign In.
Connect using Tableau.¶
In the left-side navigation under To a server, click on More… then click MongoDB BI Connector.
In the connection dialog box:
Field Action Server Type the hostname or IP address of the MongoDB Connector for BI host. Port Type the IANA port number for the MongoDB Connector for BI. The default is 3307
.Username Type the username for the user that can access the active MongoDB Connector for BI database.
Unless you specified a
defaultMechanism
in your MongoDB Connector for BI Configuration File, you must append the authenticating database to the username.Example
The user
biUser
is authenticated against theimf
database.- If you are using Username and Password (
SCRAM-SHA-1
) authentication, the expected authenticating database isadmin
. - If you are using LDAP (
PLAIN
) authentication, the expected authenticating database is$external
.
Password Type the password associated with the Username. - If you are using Username and Password (
Click Sign In.
Connect from Tableau without Authentication or TLS/SSL¶
In the left-side navigation under To a server, click on More… then click MongoDB BI Connector.
In the connection dialog box, provide values for these fields:
Field Action Server Type the hostname or IP address of the MongoDB Connector for BI host. Port Type the IANA port number for the MongoDB Connector for BI. The default is 3307
.Username Type the username for the user that can access the active MongoDB Connector for BI database.
Unless you specified a
defaultMechanism
in your MongoDB Connector for BI Configuration File, you must append the authenticating database to the username.Example
Click Sign In.
Connect from Tableau with Authentication and TLS/SSL¶
To connect Tableau to the MongoDB Connector for BI using TLS/SSL:
Using Tableau 10.3 or Later¶
With Tableau versions 10.3 or later, Tableau sends passwords in clear text. To configure Tableau to use authentication and TLS/SSL:
Create a Tableau Datasource Connection file.¶
The TDC file allows you to specify the authentication mechanism.
Save this file as mongodb.tdc
in the My Tableau
Repository for your platform:
Platform | Default TDC Save Path |
---|---|
macOS | /Users/{name}/Documents/My Tableau Repository/Datasources |
Windows | C:\Users\{username}\Documents\My Tableau Repository\Datasources |
Important
Any time you change a .tdc
file, you must restart the Tableau
Desktop application for those changes to take effect.
Tableau applies the authentication settings in the .tdc
file to
every connection matching the named database vendor and driver.
Connect using Tableau.¶
In the left-side navigation under To a server, click on More… then click MongoDB BI Connector.
In the connection dialog box, provide values for these fields:
Field Action Server Type the hostname or IP address of the MongoDB Connector for BI host. Port Type the IANA port number for the MongoDB Connector for BI. The default is 3307
.Username Type the username for the user that can access the active MongoDB Connector for BI database.
Unless you specified a
defaultMechanism
in your MongoDB Connector for BI Configuration File, you must append the authenticating database to the username.Example
The user
reader
is authenticated against theadmin
database.- If you are using Username and Password (
SCRAM-SHA-1
) authentication, the expected authenticating database isadmin
. - If you are using LDAP (
PLAIN
) authentication, the expected authenticating database is$external
.
Password Type the password associated with the Username. Require SSL Select the checkbox. No custom configuration file specified (click to change)… Click this link to configure your SSL certificate. - If you are using Username and Password (
In the Configure and Use SSL Certificate dialog box:
Field Action Use the following custom SSL certificate file Select this to allow you to select an SSL certificate.
Example
The user is going to select an SSL certificate.
Browse… Choose an SSL certificate file on your computer. Click OK.
- Click Sign In.
Using Tableau 10.2 or Earlier¶
With Tableau versions 10.2 or earlier, you must configure Tableau to send passwords in clear text. To configure Tableau, you can either:
- Use a Tableau Datasource Connection (TDC) file, or
- Set the
LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN
environment variable.
Use a TDC File¶
Create a Tableau Datasource Connection file.¶
The TDC file is a convenient
way to enable the cleartext plugin and specify all of
mongosqld
’s TLS/SSL certificates and keys.
To create a TDC file that can
connect to the MongoDB Connector for BI with authentication over TLS/SSL, modify the
following .tdc
file template. Substitute SSLKEY
, SSLCERT
,
and SSLCA
appropriately:
Save this file as mysql.tdc
in the My Tableau
Repository for your platform:
Platform | Default TDC Save Path |
---|---|
macOS | /Users/{name}/Documents/My Tableau Repository/Datasources |
Windows | C:\Users\{username}\Documents\My Tableau Repository\Datasources |
Important
Any time you change a .tdc
file, you must restart the Tableau
Desktop application for those changes to take effect.
Tableau applies the TLS/SSL, certificate, and cleartext plugin settings in
the .tdc
file to every connection matching the named database
vendor and driver.
Connect using Tableau.¶
In the left-side navigation under To a server, click on More… then click MongoDB BI Connector.
In the connection dialog box, provide values for these fields:
Field Action Server Type the hostname or IP address of the MongoDB Connector for BI host. Port Type the IANA port number for the MongoDB Connector for BI. The default is 3307
.Username Type the username for the user that can access the active MongoDB Connector for BI database.
Unless you specified a
defaultMechanism
in your MongoDB Connector for BI Configuration File, you must append the authenticating database to the username.Example
The user
biUser
is authenticated against theimf
database.- If you are using Username and Password (
SCRAM-SHA-1
) authentication, the expected authenticating database isadmin
. - If you are using LDAP (
PLAIN
) authentication, the expected authenticating database is$external
.
Password Type the password associated with the Username. - If you are using Username and Password (
Click Sign In.
Set an Environment Variable¶
Start Tableau.¶
- OS X
Open a terminal window and execute the following command:
- Windows
Add the
LIBMYSQL_ENABLE_CLEARTEXT_PLUGIN=1
environment variable to your user environment.To do this, open a Command Prompt. Press the
Win
key, typecmd.exe
, and pressEnter
. Then execute the following command:SETX
should respond with the following:SUCCESS: Specified value was saved.
Then start Tableau.