PMA can export your Data Builder reports to any of the following SQL databases. Each destination has its own step-by-step setup guide:
SQL exports behave the same way regardless of which destination you choose. Exports are created from your reports in Data Builder: you prepare a report containing the fields you want, connect your SQL server under Exports > SQL, run an initial backfill of your historical data, and then schedule rolling updates to keep your database current. Exports can be scheduled to run monthly, weekly, daily, or hourly.
The export creates a table with the same name as the Data Builder report you are exporting, with all spaces replaced by underscores (_). The table has columns corresponding to the fields in the Data Builder report being exported.
Unlike BigQuery exports, SQL exports are not partitioned by date. Instead, new data from the export is simply appended to the table, while any changed data will be updated in the affected rows.
When you edit the report in Data Builder to add another field, this field will be added to the table as a new column the next time the export runs. Historical rows from before the new column was added will have the new field's value set to null. When you remove an existing field from the report, the field's corresponding column will be dropped from the table the next time the export runs.
The requirements are the same for every SQL destination:
Because PMA's export behavior is identical across all three destinations, the differences are on the server side:
|
Destination
|
Default port
|
Hosting options
|
Connection configuration
|
|
MySQL
|
3306
|
Server of your choice (e.g., Google Cloud SQL)
|
Add PMA's IPs as authorized networks
|
|
PostgreSQL
|
5432
|
Server of your choice (e.g., Google Cloud SQL, Amazon RDS, Azure Database for PostgreSQL)
|
Allow PMA's IPs in pg_hba.conf, set listen_addresses, and open firewall access
|
|
Azure SQL Database
|
1433
|
Microsoft Azure
|
Whitelist PMA's IPs in your Azure SQL instance
|
The destination-specific guides walk through each platform's setup in detail.
Since PMA stores and updates your data the same way in every SQL destination, your choice mostly comes down to what fits your existing setup:
There's no wrong choice: whichever destination you pick, your exported tables will contain the same data.
Once you've chosen a destination, follow the matching setup guide:
To learn about all of PMA's export destinations, including BigQuery, Amazon S3, and FTP, see How to Use Data Exports. If you're not sure whether your Custom plan includes data exports, or you'd like to add them, please contact our support team.