This example discusses how to connect Tableau to a MySQL database.
- Select to open the Connect to Data page.
- Select MySQL.
- Follow the steps in the MySQL Connection dialog box to complete the connection.
- Step 1 – Type the name of the server that hosts the database.
- Step 2 – Enter your username and password to log on to the server.
- Step 3 – Test the connection.
If the connection is successful, Tableau will alert you. If the connection is unsuccessful, verify that your user name and password are correct. If the connection continues to fail, your computer is having trouble locating the server. Contact your network administrator or database administrator.
- Step 4 – Select the database that you want to connect to.
- Step 5 – Select a table or view from the database.
MySQL databases can contain multiple tables and views. Specify which table or view within the database you want to connect to. You can also connect to multiple tables or a specific query by selecting the Multiple Tables and Custom SQL options.
- Step 6 – Give the connection a name for use in Tableau.
Specify a unique name for the connection. The default name is automatically generated based.
A completed Connection dialog box for MySQL is shown below.