How to get MySQL data in Looker Studio

The ability to report MySQL to Looker Studio is invaluable. Looker Studio offers options for reporting a company’s performance. Yet there is a limitation to connect databases such as MySQL. To solve this issue, Two Minute Reports has developed a MySQL connector to make it easier for analysts to send data from MySQL databases to Looker Studio.

Write MySQL queries and pull data into Looker Studio

Our MySQL connector is efficient and user-friendly, allowing users to integrate MySQL into Looker Studio in minutes and reduce the time needed to create reports.

Select MySQL in the TMR Portal

The first thing to do is to go through our portal and select the data source you want to add.

  • Choose Two Minute Reports for Looker Studio (the blue one).

  • Select your team. If you only have one team, you skip this and TMR automatically redirects you to the connectors page.

You will now see the connectors page.

  • In the connectors page, find and select MySQL.

Authorize Your MySQL Database

The next series of steps is to configure MySQL with TMR.

Info

The example below is for MySQL. Two Minute Reports also allows you to connect with other data sources.

Connect Your MySQL Database

In this section, you need to login to your MySQL database for authentication making sure it connects with TMR and Looker Studio.

  • Under Data Sources, click +Add New button.
  • Name your data source.
  • Enter your DB Host Address.
  • Enter your DB Port.
  • Enter DB Name.
  • Enter your Username and Password.
  • Click the blue Test Connection button.

  • If successful, Two Minute Reports gives a prompt “Signed in! You may close this tab now.

Configuring Your MySQL Database with TMR

Info

Query configuration is a setting in Two Minute Reports. It’s where you need to choose which account to get data from and other configurations from that data source.

  • In the Query Configs section, click + Add New button. Choose the data source you added earlier. Click Next.

The next following steps is where you configure your MySQL settings to TMR so that you can create reports in Looker Studio. You may configure the following parameters depending on your preference as TMR has imported them.

Method 1 is for accessing Tables. This doesn’t require writing SQL queries.

  • Name your query config.
  • Select the Table you want to query from.
  • Enter the Limit and Offset of the query.
  • Click Save.

Method 2 is writing your own Custom Query.

  • Name your query config.
  • Select the Custom Query
  • Enter actual SQL query under Execute.
  • Click Save.

Once everything is finished, click Create Report. The next section is creating reports in Looker Studio.

Create a MySQL Report with TMR in Looker Studio

After connecting MySQL, you can create your own custom dashboard with TMR in Looker Studio. Looker Studio is a powerful data visualization tool that contains many features to help you reduce time creating reports.

  • After clicking Create Report from the previous section, click blue Create Report from scratch button.

  • You are redirected to Looker Studio. In Looker Studio, under Select Query Config, choose the configuration you created earlier (it should be the name you gave it). Under Select your Team, choose the appropriate team as well if the dropdown is showed to you.
  • Click Connect blue button in the upper right side of the page.

  • You can now view the MySQL schema on Looker Studio. Click Create Report in the right side of the page.

Once everything is loaded, you are presented with a blank canvas. You can now create custom reports (adding dates and charts) in Looker Studio with your MySQL data.

If you want to learn about creating your own report, like adding dates and charts, read How to Create a Report in Looker Studio

Was this helpful?