Hardware FixRecommendedDevice not working? Your driver may be the problemCheck updates for common hardware issues.Fix DriversOctober DealsAmazon USOctober deal check: compare before you payAmazon US: current deals, useful picks and tech finds.Check DealsWindows FixRecommendedWindows errors stealing your time? Find the fix fastScan stability, cleanup and performance issues.Fix Now×
Skip to content
World desk5 min

MySQL to BigQuery with Sling: A Practical Replication Setup

Configure Sling connections and a YAML replication file to load MySQL tables into BigQuery, then choose full-refresh, incremental batches, or CDC based on how source data changes.
Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

To replicate MySQL to BigQuery with Sling, configure both connections, define the tables and replication mode in a YAML file, then run it with sling run -r. Use full-refresh for an initial load, timestamp/key-based incremental mode for recurring batches when the source has reliable keys, or transaction-log CDC when inserts, updates, and deletes must be captured.

What you need before configuring Sling

  • A MySQL source that Sling can connect to and a Google Cloud project with a BigQuery dataset as the destination.
  • Sling installed and available on your command line. The official guide documents installers for macOS/Linux and Windows, plus a Python package; follow its current installation instructions and verify availability with sling --version.
  • A BigQuery service-account key file and the required target-project access. Sling’s guide specifies BigQuery Data Editor and BigQuery Job User roles for its example.
  • A decision about which tables to copy and whether the target should be refreshed, updated in batches, or kept current from MySQL’s transaction log.

Keep credentials out of shared or checked-in YAML files. Sling’s guide covers installation, connection configuration, and the replication workflow.

As an Amazon Associate I earn from qualifying purchases.

Configure and test the source and target connections

Create named Sling connections for MySQL and BigQuery using the connection configuration format in Sling’s guide. For BigQuery, configure the service-account key file and confirm that the account points to the intended Google Cloud project and has the required roles. Test both connections before starting a transfer; a successful connection test does not by itself confirm that the selected dataset, table scope, or replication behavior is correct.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Choose a replication mode

Mode How it works Use it when Important limitation
full-refresh Loads the selected data as a full refresh. For an initial load or a small table that is appropriate to reload. Review the target naming and overwrite behavior for the specific mode and Sling version before using it against production data.
incremental Polls for qualifying rows using an update key and uses a primary key for the intended merge behavior. For recurring batch updates when the source has a reliable timestamp or other suitable monotonic update key, plus a primary key that identifies rows. This key-based approach is not transaction-log CDC; do not assume it captures deletes. Sling’s guide says that without a timestamp or monotonic key, its described incremental approach is limited to full-refresh or snapshot modes.
CDC Reads MySQL’s binary log after an initial load to capture ongoing row-level inserts, updates, and deletes. When changes, including deletes, need to flow from the transaction log. Sling documents a CLI Pro Max token or an Advanced Platform Plan as prerequisites. Verify current plan availability and MySQL binlog requirements before deployment.

Sling describes CDC as continuously replicating inserts, updates, and deletes by reading a database transaction log; that description is from Sling’s own CDC documentation, not an independent standards definition.

#1 Best Overall
Sandisk 2TB Extreme Portable SSD, Up to 1050MB/s, USB-C, USB 3.2 Gen 2, IP65 Water and Dust Resistance, Updated Firmware, External Solid State Drive, SDSSDE61-2T00-G25
  • Get NVMe solid state performance with up to 1050MB/s read and 1000MB/s write speeds in a portable, high-capacity drive(1) (Based on internal testing; performance may be lower depending on host device & other factors. 1MB=1,000,000 bytes.)
  • Up to 3-meter drop protection and IP65 water and dust resistance mean this tough drive can take a beating(3) (Previously rated for 2-meter drop protection and IP55 rating. Now qualified for the higher, stated specs.)
  • Use the handy carabiner loop to secure it to your belt loop or backpack for extra peace of mind.
  • Help keep private content private with the included password protection featuring 256‐bit AES hardware encryption.(3)
  • Easily manage files and automatically free up space with the SanDisk Memory Zone app.(5). Non-Operating Temperature -20°C to 85°C

Write a replication YAML file

A replication file has source, target, optional defaults, and streams sections. Defaults apply common settings, while settings on an individual stream can override them. The example below shows the structure; replace connection names, paths, dataset names, tables, and keys with values valid for your environment.

source: mysql_source
 target: bigquery_target
 defaults:
   mode: full-refresh
 streams:
   demo.*:
     object: '{stream_table}'

In this illustration, demo.* selects all tables in the demo schema, while {stream_table} retains each source table’s name in the target. Confirm the wildcard scope and destination naming before running: a broad pattern can include more tables than intended. Sling’s replication reference describes streams, defaults, and per-stream settings.

Rank #2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
  • Solid state performance with up to 800MB/s read speeds in a portable drive. (Based on internal testing; performance may be lower depending on host device, interface, usage conditions and other factors. 1MB=1,000,000 bytes.)
  • Back up your content and memories on a storage solution that fits seamlessly into your mobile lifestyle.
  • Take it with you on your adventures—up to two-meter drop protection means this durable drive can take a beating. (Based on internal testing.)
  • Secure it to your belt loop or backpack for extra peace of mind thanks to the tough rubber hook.
  • From Sandisk, a brand professional photographers trust to take on assignments.

For a first full load

Set mode: full-refresh for the initial load when a full refresh is appropriate. Check the destination dataset and the mode’s overwrite behavior against the Sling version you will operate; do not infer production-safe replacement behavior from a generic example.

Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

For recurring incremental batches

Set the stream to mode: incremental and supply an update_key and a primary_key. The update key must reliably mark new or changed records, and the primary key must uniquely identify the rows for the intended merge behavior. Sling’s example uses a timestamp as the update key and an order ID as the primary key; those are examples, not universal choices. If source updates can occur without changing the selected update key, or if the key is not reliable, rows may not be selected as intended.

Rank #3
Sale
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
  • Easily store and access 2TB to content on the go with the Seagate Portable Drive, a USB external hard drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition no software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.

For transaction-log CDC

Use Sling’s CDC workflow when MySQL inserts, updates, and deletes need to be captured from the binary log. CDC has an initial-load phase followed by ongoing change capture. Confirm binlog configuration, account access, and the applicable Sling plan before relying on it.

Run the replication

  1. Save the configuration as a YAML file, for example replication.yaml, and ensure the named connections resolve in the environment where Sling will run.
  2. Run sling run -r path/to/replication.yaml, replacing the path with the actual file path.
  3. Check the run result and confirm that the intended source tables and destination objects were processed. Verify the target data before scheduling recurring executions.

How Sling loads data into BigQuery

Sling’s guide describes loading through BigQuery bulk load jobs, rather than inserting each row individually. With a Google Cloud Storage bucket configured, Sling can stage batches there; without one, the guide says Sling stages locally and still uses bulk loading. Choose a staging path that fits your access, storage, and operational requirements.

Rank #4
Sale
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
  • NEARLY 2X FASTER THAN OUR PREVIOUS GENERATION(8) – move 1,000 high-res photos in under 60 seconds(6) with up to 2000MB/s transfer speeds(2).
  • IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.
  • POCKET-SIZED – fits easily in pockets and small bags.
  • SPACE TO OWN YOUR AI CONTENT – speed and capacity to download your high-res clips and photo edits.
  • 256-BIT AES ENCRYPTION(4) – helps keep private files secure with password protection.

Sling reports an example of 80,000 rows loaded in about 23 seconds and a separate incremental run that inserted 2,500 rows in 44 seconds. These are SlingData.IO’s 2026 vendor-reported examples for its described run against MySQL 8.4 and a live BigQuery dataset, not independent benchmarks or a forecast of performance for another workload. Source

What’s actually slowing this PC down?

Pick the symptom - the matching free tool is one click away.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

Schedule and operate recurring runs

Sling’s guide shows cron as a basic way to schedule a working replication. A scheduler alone does not provide production monitoring or recovery. Decide how your deployment will log runs, alert on failures, retry safely, and recover from missed or partial executions. The guide describes target-based checkpoints for database targets, but that example should not be treated as a complete operational design for BigQuery.

Quick Recap

Bestseller No. 2
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
Sandisk 1TB Portable SSD, Up to 800MB/s Read Speeds, Black (Old Model)
From Sandisk, a brand professional photographers trust to take on assignments.
$188.90
SaleBestseller No. 3
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
Seagate 2TB Portable Hard Drive | USB 3.0 (STGX2000400)
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$129.99
SaleBestseller No. 4
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
Sandisk 1TB Extreme Portable SSD, Up to 2000MB/s Transfer Speeds-New Model
IP65 RATING AND UP TO 3M DROP PROTECTION(3) – protects against spills and drops.; POCKET-SIZED – fits easily in pockets and small bags.
$249.17
Bestseller No. 5
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable; The available storage capacity may vary.
$229.99
Best Value
Seagate Portable 5TB External Hard Drive HDD – USB 3.0 for PC, Mac, PS4, & Xbox - 1-Year Rescue Service (STGX5000400), Black
  • Easily store and access 5TB of content on the go with the Seagate portable drive, a USB external hard Drive
  • Designed to work with Windows or Mac computers, this external hard drive makes backup a snap just drag and drop
  • To get set up, connect the portable hard drive to a computer for automatic recognition software required
  • This USB drive provides plug and play simplicity with the included 18 inch USB 3.0 cable
  • The available storage capacity may vary.
  • Validate the Google Cloud project, dataset, service-account roles, and credentials used by the scheduled environment.
  • Review the wildcard or individual stream list, destination dataset, and table-name template.
  • Check that stream-specific overrides do not unintentionally replace shared defaults.
  • Choose the mode according to the source’s change semantics, especially whether deletes need to propagate.
  • Confirm the run can be observed and that failures have an assigned retry and recovery process.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.

Leave a Reply

Your email address will not be published. Required fields are marked *

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

More from the Wire

  1. World desk4 min
    How to Spot an AI Voice Scam Before Sending MoneyDon’t rely on how a caller sounds. Pause, call back through a known number, and verify the emergency with another trusted person before sending money.
  2. Mountain View desk4 min
    Google’s SynthID Detector: How to Check AI-Generated Images, Video and AudioGoogle’s SynthID Detector looks for an embedded watermark in supported images, video and audio. Here is what its results do—and do not—show.
  3. Redmond desk20 min
    How to create a link to File or Folder in Windows 11Windows 11 gives you several ways to point to a file or folder without moving or duplicating it. You can create a desktop shortcut,…
Recommended PC Tool
Recommended PC Tool
Outdated Drivers Are Slowing You DownFree scan - exact matches
PC Slower Than It Used to Be?Free scan - under a minute

Two free Windows tools

One Free Minute Could Fix That PC

Before you go - each of these free tools takes about a minute and tackles what quietly slows a Windows PC down.

Special offer. View Outbyte info, uninstall instructions, EULA, and Privacy Policy.