Power My Analytics offers a Hosted MySQL solution with your Enterprise plan. This article will help you learn about its uses and how to get started. With our Hosted MySQL solution, you can achieve GDPR compliance by setting up your data warehouse within the EU.
Currently, we only support MySQL. PostgreSQL and Microsoft SQL Server may become available in the future.
Uses and Benefits
- Own Your Data: The data will be stored in your MySQL database and can be used in any of our data destinations (Looker Studio, Google Sheets, Excel, BigQuery, etc.)
- Have Your Data Stored In Your Country: For those EU-based clients that require their data must be housed in the EU or their country, this solution satisfies GDPR requirements. The Hub owner must set up the database in an EU country in order for the data warehouse to be GDPR-compliant.
- Use Your Data In BI Tools like Tableau, Looker, and Power BI: These BI tools all accept MySQL as a data source.
- Take Your Data With You: If you choose to stop using Power My Analytics, your data warehouse will be populated up to the day you stop your service. You can then use another service or method to append future data into your data warehouse
Hosted MySQL vs. BigQuery Exports
Hosted MySQL is a more optimal solution for data warehousing than BigQuery for several reasons:
- The entire schema can be automatically exported into the Hosted MySQL data warehouse with no coding or report setup. For BigQuery, a report must first be created in the Data Explorer before it can be exported to BigQuery, so it does take more effort to set up BigQuery exports.
- Our Hosted MySQL data warehouse solution works with our data destinations (Looker Studio, Google Sheets, Excel, Big Query, etc.) seamlessly. You can still use our Looker Studio connectors, Google Sheets add-on and export to BigQuery from your MySQL data warehouse just like if you are using our normal plans. The benefit is you own your data and you can take your data with you at any time.
Hosted MySQL vs. MySQL Exports
- Just like PMA's own data warehouse, our hosted MySQL data warehouse solution will not store the values of live fields.
- If you need to store live field values in MySQL, our MySQL export feature will retrieve the live fields in a Data Explorer report and export them to your MySQL database at the scheduled time. For more information on setting up MySQL exports, please see How to Export to MySQL.
Getting Started
Create a MySQL database
Recommended specs:
- 3.75 GB or higher memory
- SSD
- 100 GB in storage capacity is usually enough. Agencies or Enterprise subscriptions with many accounts may require more.
- If in the European Union: Select a European region for your Google Cloud MySQL instance in order to meet GDPR requirements.
Example of recommended settings:
Under Connections, check Public IP and add PMA's IP ranges as authorized networks:
- 35.188.118.242/32
- 35.209.185.69/32
Connect your database to your Hub
Select SQL Warehouse under Exports in the left navigation pane then click SQL Settings to begin setup.
Provide the IP address or domain name of your server, the username, and the password to connect.
Create a report
Use Looker Studio, our Sheets Add-on or Data Explorer to create a report and begin the flow of data through your MySQL database.
Select all accounts that you wish to have in your database. Only accounts that have reports will show data in your MySQL database.
Backfill
The MySQL solution is unique and only automatically backfills 7 days of data for most connectors.
Run a manual backfill to retrieve up to 2 years of data.
Troubleshooting
Error: Could not set global database flag
When connecting to your SQL data warehouse, you may receive the following error:
Could not set global database flag. Please elevate this user's permissions OR set 'max_allowed_packet = 536870912'
If this error appears, go to your
Google Cloud console and choose the project containing your Cloud SQL instance. Open your instance and click
Edit, then scroll to
Flags.
For Choose a flag, select max_allowed_packet. Under Value, enter 536870912. Then click Done.