MySQL and Pipedrive integration

Whalesync syncs MySQL and Pipedrive both ways. Customer data in your database fills in Pipedrive organizations, people, and leads, and the pipeline comes back to MySQL as tables you can query.

MySQL
Pipedrive
Use cases

What you can do with MySQL and Pipedrive

Sales

Show reps each customer's product data

Sync the accounts table in your app's database to Pipedrive organizations, and each customer's plan, seat count, and last login fill custom fields on the organization. Reps can see who is growing, or going quiet, before they call. Set those fields to sync one way from MySQL, so the database stays the source of truth and a stray edit in Pipedrive doesn't overwrite it.

Syncs OrganizationsPersons
Names come from the accounts table in MySQL, and Plan, Seats, and Last active are Pipedrive custom fields that table fills.
Growth

Turn trial signups into Pipedrive leads

When someone starts a trial, your app writes a row to MySQL, and that row becomes a lead in Pipedrive's Leads Inbox, linked to the person and the organization synced from the same database. The trial's end date becomes the lead's expected close date, so reps work the trials that are about to run out first. Leads edited in Pipedrive come back to MySQL on a slower schedule, since Whalesync gets no change notices for them.

Syncs LeadsPersonsOrganizations
Each lead was a row in the trials table. Its person and organization are links to records synced from MySQL.
Revenue operations

Query the pipeline next to product data

Sync Pipedrive deals, stages, and pipelines into MySQL, and the pipeline sits in the same database as accounts and usage, ready to join in a report. Each deal's stage is a foreign key to the stages table, and the timestamps Pipedrive sets itself, like when a deal was won, arrive one way. Whalesync can create the tables in MySQL for you, links included.

Syncs DealsStagesPipelines
Each row is a Pipedrive deal. stage_id points at a synced stages table, and won_on is Pipedrive's won time, synced one way into a DATE column.
What syncs

Everything that syncs

Each card is something you can sync between MySQL and Pipedrive.

  • MySQL All Tables Two-way
  • Pipedrive Persons Two-way
  • Pipedrive Organizations Two-way
  • Pipedrive Deals Two-way
  • Pipedrive Leads Two-way
  • Pipedrive Activities Two-way
  • Pipedrive Pipelines Two-way
  • Pipedrive Stages Two-way
  • Pipedrive Lead Labels Two-way
  • Pipedrive Users Into MySQL
  • Pipedrive Activity Types Into MySQL
Step-by-step guide

How to sync MySQL and Pipedrive

Step 1: Start a new sync

Click New sync in Whalesync and choose MySQL and Pipedrive.

Step 2: Connect MySQL

Fill in the server's host, port, database, username, and password on the Connection details tab, or paste a mysql:// string on the Connection string tab. Leave the database blank to choose from every database the user can see; each one is a base of its own. SSL Mode starts on Automatic, which encrypts the connection without checking the certificate, and the stricter modes are there if your provider calls for one. If the server accepts only known addresses, allow Whalesync's, 34.66.3.22. The MySQL user needs SELECT, INSERT, UPDATE, and DELETE on the tables you sync, ALTER and CREATE for Whalesync to add an ID column or a table, and REFERENCES for the link columns it creates.

Step 3: Connect Pipedrive

Sign in with Pipedrive, or paste your personal API token. Whalesync reads and writes persons, organizations, deals, leads, activities, pipelines, stages, and lead labels, and reads users and activity types.

Step 4: Map tables and fields

Pair each MySQL table with a Pipedrive object, such as accounts with Organizations and users with Persons, or choose Create new table to have Whalesync build the MySQL table from a Pipedrive object. Whalesync can't add fields to Pipedrive, so create the custom fields you want filled, such as Plan or Seats, in Pipedrive before you map them. A MySQL table needs a record ID, such as an AUTO_INCREMENT primary key; for one without, Add Whalesync ID column adds whalesync_mysql_id.

As each mapping opens, an AI model proposes field pairs from their names and types, and Automap puts them in place; finish the rest by hand and set each field's direction. A foreign key column becomes a Pipedrive link when it points at the ID column of a table in the sync, so users.account_id sets each person's organization. A deal's stage and pipeline are links as well, which means syncing Stages and Pipelines alongside Deals.

Step 5: Match records and activate

If the same people or organizations already exist on both sides, match them before the first sync runs. A person's email is usually the field to use, but matching is exact, case included, so Wren@tybeetaffy.com in one app won't match wren@tybeetaffy.com in the other. Choose which app's values win where matched records differ, then activate the sync.

Compare

3 ways to connect MySQL and Pipedrive

  • Pipedrive API

    Best when your developers will build and host the integration, and keep it working as both sides change.

    • Webhooks for deals, persons, leads, and more, which your code has to receive (Pipedrive)
    • A daily token budget shared by everyone on the company account (Pipedrive)
    • The MySQL side, reading changes and writing rows, is your code too
  • Make

    Best when Pipedrive events should write rows into MySQL in one direction, such as a row for every new deal.

    • Pipedrive triggers, such as Watch Deals and Watch Persons, start a scenario
    • Its MySQL app has no trigger, so a change in the database can't start one (Make)
    • Billed in credits, which every module action in a run uses (Make)
  • Whalesync

    Best when your database and Pipedrive describe the same customers, and both have to stay current.

    • Two-way between MySQL tables and Pipedrive objects, one table mapping each
    • Foreign keys become Pipedrive links, such as a person's organization
    • Priced by how many records are in sync, not how often they change

Pipedrive API and Make checked against their own pages in November 2026.

FAQ

Frequently asked questions

Does Pipedrive integrate with MySQL?

There are three routes: your own code on Pipedrive's API, an automation tool such as Make or Zapier, or Whalesync, which keeps MySQL tables and Pipedrive objects in sync both ways. The cards above compare them.

Can I sync Pipedrive deals to a MySQL table?

Yes. Map Deals to a table, or let Whalesync create one. A deal's stage and pipeline are links to Pipedrive's Stages and Pipelines, so sync those too, and the deal's stage becomes a foreign key to the stages table. Fields Pipedrive sets itself, such as the won time, flow into MySQL one way.

Can I create Pipedrive organizations and people from MySQL?

Yes. Map a table of accounts to Organizations and a table of users to Persons, and new rows become new records in Pipedrive. A foreign key from users to accounts sets each person's organization. Whalesync can't add fields to Pipedrive, so create any custom fields you want filled there first.

Which MySQL tables can Whalesync write to?

InnoDB tables with a record ID, such as an AUTO_INCREMENT primary key, sync both ways. Views, and MyISAM tables or others whose engine can't roll back a write, sync one way, out of MySQL. Whalesync can add a whalesync_mysql_id column to most tables that lack an ID; the MySQL docs list the exceptions.

Is the MySQL Pipedrive sync real-time?

For deals, persons, organizations, activities, stages, and pipelines, close to it: Pipedrive notifies Whalesync, which fetches the changed record within seconds. Whalesync gets no notifications for leads, so lead edits made in Pipedrive arrive on a slower full scan. A MySQL table with an indexed column that MySQL stamps on every change (ON UPDATE CURRENT_TIMESTAMP) is checked for changed rows every 15 seconds; any other table is reread in full on each pass, which takes longer on a large one.

More integrations

Other apps to connect

Connect your tools in minutes