Skip to main content

MySQL Source Connector

The MySQL source connector in DataSync lets you retrieve data from MySQL databases for loading or synchronizing in your data warehouse. After creating all required source connections, configure your destination source to complete the connection setup.

Create a source connection in DataSync

  1. Log in to DataSync.
  2. From the welcome screen, select Connections.
  3. Next to Source Connections, click New.
  4. Select MySQL.
  5. In the Connection Properties panel, enter the connection properties.
  6. (Optional) In the Additional Connection Properties panel, select Add property and enter the parameters for each property.
  7. In the Advanced Settings panel, configure the settings, including the Tracking Type and other values according to your requirements.
  8. Click Save.

Parameters

Connection properties

ParameterDescription
DescriptionUnique name for the connection. Example: MySQL
ServerHostname or IP address of the MySQL server. Example: mysqlserver.company.com
DatabaseName of the MySQL database. Example: SalesDB
PortPort number of the MySQL server. Default: 3306.
UsernameMySQL user account used for authentication. Example: db_user
PasswordPassword for the specified username.
Convert zero-dates to nullSetting that determines whether to return NULL for Date or DateTime values consisting entirely of zeros. In MySQL, a zero date indicates an invalid date and may cause parsing errors unless this option is enabled.
Verbosity
  • 1 – Log queries, row counts, execution start/end, errors.
  • 2 – Includes level 1 plus cache queries, HTTP headers.
  • 3 – Includes level 2 plus request/response bodies.
  • 4 – Includes level 3 plus transport-level communication.
  • 5 – Includes level 4 plus all interface commands.
Enable PoolingConnection pooling option for performance.
Pool idle timeoutMaximum idle time for connections before returning them to the pool, in seconds.
Max Pool SizeMaximum number of connections allowed in the pool.
Pool wait timeMaximum wait time for connection allocation before error is thrown, in seconds.

Additional connection properties

Additional connection string properties not specified in the Connection Properties panel. For each property added, you can choose Visible or Encrypted. Selecting Encrypted hides the value from the interface and stores it encrypted in the back end, such as when defining passwords.

PropertyValue
OtherTimeout setting for writing blocks to a connection before aborting the write process. Recommended when synchronizing large data sets (more than 500,000 rows). Enter as net_write_timeout=numberOfSeconds. Example: net_write_timeout=3600
CharactersetCharacter set name used in the database collation. The character set must match between the source and destination databases, otherwise tables cannot be added to extractions. Only one Characterset property can be set per connection.
Examples: utf8mb4, latin1

Advanced settings

Advanced settings control how the MySQL connector tracks changes, handles regional and time configuration, and processes data batches during extraction. These options allow fine‑tuning for performance and accuracy, and should be configured according to your system environment and operational requirements.

SettingDescription
Tracking TypeMethod for tracking changes: None or Date.
RegionRegion setting for the connector, if required by your setup.
Time ZoneTime zone matching the MySQL application server.
Time OffsetRefresh offset in seconds to compensate for timing issues in record selection. Minimum value is 0; maximum is 3600 seconds.
Batch SizeQuantity of records processed in each batch during extraction. Larger batch sizes increase memory usage but can improve performance up to a point. The default value is 2000 and the maximum should not exceed 10000 records. Adjust according to your network speed and disk performance; in most cases the default (2000) works best.

Example