How to Connect MySQL Workbench to Tableau

Cody Schneider8 min read

Connecting your MySQL database to Tableau transforms your raw data into interactive, visual dashboards that are easy to understand. This guide will walk you through the entire process, step-by-step, so you can stop looking at endless rows in a database and start seeing the insights your data holds.

First, A Quick Clarification: MySQL vs. MySQL Workbench

It's a common point of confusion, so let's clear it up first. You probably use MySQL Workbench to view, manage, and query your database. It's an excellent admin tool. However, Tableau doesn't connect to MySQL Workbench, it connects directly to the MySQL database server that Workbench also connects to.

Think of it this way: your MySQL database is the library of data. MySQL Workbench is one librarian who helps organize it. Tableau is another professional (a data analyst, in this case) who comes in to read the books (your data) and create summaries. Both need the address of the library (your server details) to get to work.

Why Connect MySQL to Tableau Anyway?

Your MySQL database is fantastic for storing structured application data - customer information, sales records, product inventories, user activity, you name it. It’s the engine running quietly in the background of your website or app. But it’s not designed for quick, visual analysis.

That's where Tableau shines. By connecting the two, you can:

  • Build Interactive Dashboards: Turn sales data into a dashboard that executives can filter by date, region, and product in real-time.
  • Explore Your Data Visually: Instead of writing complex SQL queries to find trends, you can drag and drop fields to see patterns emerge instantly.
  • Share Insights Easily: Create reports for your team or clients that update automatically, saving you hours of manual reporting every week.

Before You Begin: Your Pre-Connection Checklist

Gathering a few key items beforehand will make the connection process smooth and error-free. You'll save yourself a lot of headaches by having this information ready.

1. Your MySQL Server Connection Details

This is the most critical piece. You should be able to find these details in your application's configuration file or get them from your developer or database administrator. This is the same information you use to set up a connection in MySQL Workbench.

  • Server Name: This is the address of your database. It might be an IP address (like 172.16.0.10), a domain name (like db.yourcompany.com), or simply localhost if the database is running on the same computer as Tableau.
  • Port: This is the specific "door" Tableau will use to access the server. The default port for MySQL is almost always 3306. Unless you know it's different, you can usually leave this as the default.
  • Database: Your MySQL server can host multiple independent databases. You need to specify which one you want to connect to (e.g., production_db, sales_data).
  • Username and Password: The credentials for a user account that has permission to access the specified database. For security, it's best to use a user account with read-only permissions if you're only building reports.

2. Tableau Desktop (or Public) Installed

This tutorial assumes you have a version of Tableau installed on your machine. The steps are virtually identical for both Tableau Desktop (the paid version) and Tableau Public (the free version).

3. The Correct MySQL Driver

Tableau needs a specific "translator" software, called a driver, to communicate with MySQL databases. Without it, Tableau won’t even show you the option to connect.

You can download the official driver from Tableau’s website. Go to the Tableau Drivers & Activation page, find MySQL in the list, and download the recommended driver for your operating system (Windows or Mac). You must install this before opening Tableau.

4. Network Access and Firewall Permissions

A very common reason for connection failures is that a firewall is blocking access from your computer to the database server. If your database is hosted on a cloud service (like AWS, Google Cloud, or Azure) or a company server, ensure that your computer's IP address has been whitelisted or granted access in the firewall settings for the database server's port (e.g., 3306).

Step-by-Step: Connecting Tableau to Your MySQL Database

Once you’ve gone through the checklist, the actual connection process is quite straightforward. Follow these steps carefully.

Step 1: Install the MySQL Driver and Restart Tableau

If you haven't already, close Tableau, find the driver file you downloaded from Tableau's site, and complete the installation. This is a quick process, usually just a few clicks.

Crucially, you must restart Tableau after the driver is installed. If Tableau was open during the installation, it won't recognize the new driver until you close and reopen the application.

Step 2: Open Tableau and Choose the MySQL Connector

Launch Tableau. In the "Connect" pane on the left side of the screen, under the heading "To a Server," you'll see a list of database types. Click on MySQL.

If you don’t see MySQL in the list, it most likely means the driver wasn't installed correctly or you didn't restart Tableau.

Step 3: Enter Your Server Connection Information

A dialog box will appear asking for the credentials from your checklist. Carefully fill in each field:

  • Fill in the Server, Port, and Database details.
  • Enter the Username and Password for the database user.

Note: For the “Database” field, you can leave it blank. If you do, Tableau will connect to the server and let you choose the database in the next step. However, filling it in here is usually easier.

Step 4: Sign In

Once all the information is entered, click the blue "Sign In" button at the bottom. Tableau will attempt to connect to your MySQL server using the credentials provided.

If the connection is successful, you'll be taken directly to the Data Source screen within Tableau. If it fails, Tableau will give you an error message (we cover how to solve these in the troubleshooting section below).

You're Connected! Now What?

Congratulations, your MySQL data is now available in Tableau! You are now looking at the Data Source page. Here are your next steps to start building your first visualization.

Select Your Tables

On the left-hand side, you should see a list of all the tables available in the database you connected to. To start analyzing data, simply find the table you want to use (e.g., 'orders') and drag it into the canvas area at the top that says, "Drag tables here."

Join Data from Multiple Tables

Databases usually store related information across multiple tables. For instance, you might have an orders table and a customers table. You can combine them in Tableau to analyze which customers placed which orders.

Simply drag your second table (e.g., 'customers') onto the canvas. Tableau will often automatically detect the common field (like customer_id) and create a join. You can click on the join icon (the overlapping circles) to edit the join type (Inner, Left, Right, etc.) and the join clauses.

Choose a Connection Type: Live vs. Extract

In the top-right corner of the Data Source page, you'll see options for "Connection": Live and Extract. This is an important choice.

  • A Live connection queries your MySQL database directly every time you create or interact with a chart.
  • An Extract connection takes a snapshot of your data and loads it into Tableau's high-performance, in-memory data engine.

General Rule: Start with a Live connection. If your dashboards feel slow, switch to an Extract.

Start Building Worksheets

Once your tables are set up, click on the first worksheet tab at the bottom of the screen (e.g., "Sheet 1"). You'll see your table's fields organized in the "Data" pane on the left. Now you can drag fields onto the "Columns" and "Rows" shelves to create your first chart!

Common Troubleshooting Tips

Sometimes the connection doesn't work on the first try. Here are the most common errors and how to fix them.

Error: "Unable to connect to the server..."

This is the most frequent connection error. It's generic, but it means one of a few things:

  • Incorrect Server Name or IP: Double-check for typos. Make sure you have the correct address.
  • Firewall Blocking: This is a big one. Ask your network administrator to ensure the firewall allows traffic from your computer to the database server on port 3306.
  • MySQL Server Isn't Running: Confirm with the database administrator that the server is online and operational.

Error: "Access denied for user..."

This error is more specific. It means you've successfully reached the server, but your credentials are wrong.

  • Check Username/Password: Carefully re-type your username and password. They are case-sensitive.
  • Check User Permissions: Ensure the user you're connecting with has permissions to access the specific database you listed in the connection settings.

The MySQL option doesn't appear in Tableau's connection list.

This is almost always a driver issue.

  • Close Tableau completely. Don't just minimize it.
  • Install the MySQL driver from the Tableau drivers page.
  • Re-open Tableau. The option should now appear.

Final Thoughts

Connecting Tableau directly to your MySQL database is a powerful step towards creating a data-driven culture. This direct line to your raw data lets you move beyond static spreadsheets and build dynamic, automated dashboards that give you and your team clear, actionable insights.

Once you’ve mastered connecting one data source, you’ll quickly find you want to pull in data from everywhere - your ad platforms, your CRM, your analytics tools. With Graphed, we automate this entire process for you. You can connect sources like Google Analytics, Shopify, Salesforce, and Facebook Ads in seconds. Instead of wrestling with drivers and dashboards, you simply ask for what you need in plain English, and our AI data analyst builds real-time dashboards and reports for you in an instant.

Related Articles

How to Connect Facebook to Google Data Studio: The Complete Guide for 2026

Connecting Facebook Ads to Google Data Studio (now called Looker Studio) has become essential for digital marketers who want to create comprehensive, visually appealing reports that go beyond the basic analytics provided by Facebook's native Ads Manager. If you're struggling with fragmented reporting across multiple platforms or spending too much time manually exporting data, this guide will show you exactly how to streamline your Facebook advertising analytics.

Appsflyer vs Mixpanel​: Complete 2026 Comparison Guide

The difference between AppsFlyer and Mixpanel isn't just about features—it's about understanding two fundamentally different approaches to data that can make or break your growth strategy. One tracks how users find you, the other reveals what they do once they arrive. Most companies need insights from both worlds, but knowing where to start can save you months of implementation headaches and thousands in wasted budget.