Download as pdf or txt
Download as pdf or txt
You are on page 1of 20

ATTUNITY Replicate – v6.

x
Attunity Replicate for MySQL
MySQL Editions
Attunity Replicate supports the following MySQL editions:

• MySQL Community Edition


• MySQL Standard Edition
• MySQL Enterprise Edition
• MySQL Cluster Carrier Grade Edition

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


Platforms
The MySQL database is supported on all operating systems and
platforms.
The MySQL database can be installed on any computer in your
network.
An MySQL client must be installed on the computer where
Attunity Replicate is located.

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


Prerequisites
A MySQL account with specific access privileges is required. The list of privileges depends on
whether MySQL is used as a source or target endpoint.
A MySQL database with the tables you want to replicate should be accessible in your network.
Install the appropriate MySQL client on the Attunity Replicate machine:
• Windows - MySQL ODBC 5.2.6 64-bit client or above
• Linux - MySQL Client 5.2 or above for Linux. The documentation contains the required entry
in /etc/odbcinst.ini for Linux.
Setup MySQL configuration file – my.ini (Windows) or my.cnf (Linux) - see notes or
documentation for parameter names and values:
• Enable binary logging 6 parameters (required)
• If replicating clustered (NDB) tables 3 parameters (optional)

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


Limitations
The Truncate Partition, Drop Table, and Rename Table DDL operations are not
supported.
Using the alter table <table_name> add column <column_name> DDL
statement to add columns to the beginning or middle of a table is not
supported.
MySQL Source: Changes are not captured from tables whose names contain
both upper and lower case characters.
MySQL Source: The AR_H_USER header column is not supported.
MySQL Target: When updating a column’s value to the same value a zero rows
affected is returned from MySQL which generates entries in the
attrep_apply_exceptions control table and log file.
CONFIDENTIAL INFORMATION v6.x © 2018 Attunity
Source Endpoint
Configuring the MySQL Source Endpoint in Attunity Replicate
Source Security Requirements
The Replicate user must have the ReplicationAdmin role with the
following privileges:
Replication Client
Replication Slave
Super

The Replicate user must also have Select privileges for the
source tables designated for replication
CONFIDENTIAL INFORMATION v6.x © 2018 Attunity
How to add a database to Attunity Replicate
Click Manage Endpoint Connections to
add or edit information about databases
you may want to use in a task.
To add a new database to Attunity
Replicate, click New Endpoint Connection

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


How to add a MySQL source database to Attunity Replicate

Click New Endpoint Connection:


Provide a Name
Select SOURCE Role
Select MySQL Type
Type the host name or IP address of the
computer where the MySQL database is
installed
Type the port number for the MySQL
database (default 3306)
Type the User name and Password for the
MySQL user

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


Setting Advanced Options
Type how often Replicate checks
the binary log for new events
Specify any additional ODBC
connection properties that may be
required. E.g., if you are running a
more recent version than MySQL
Client 5.2 for Linux or MySQL
ODBC Client 5.2.6 64-bit for
Windows specify the version
number here, for example:
provider=MySQL ODBC 5.3
Unicode Driver
To create a custom connection
string select the override check
box and type the string in the
subsequent text box.

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


Setting Advanced Options
Specify Internal Parameters

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


Setting Advanced Options
View Settings Summary

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


Target Endpoint
Configuring the MySQL Target Endpoint in Attunity Replicate
Target Security Requirements
The Replicate user must have MySQL account access with
read / write privileges in the MySQL database.

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


How to add a database to Attunity Replicate
Click Manage Endpoint Connections to
add or edit information about databases
you may want to use in a task.
To add a new database to Attunity
Replicate, click New Endpoint Connection

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


How to add a MySQL target database to Attunity Replicate

Click Add Database and in dialog box:


Provide a Name
Select TARGET Role
Select MySQL Type
Type the host name or IP address of
the computer where the MySQL
database is installed
Type the port number for the MySQL
database (default 3306)
Type the User name and Password
for the MySQL user
Select the MySQL database from the
drop-down
Choose where to load source schema

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


Setting Advanced Options
Specify the maximum
size (in KB) of a CSV
file before the file is
loaded into the
MySQL target (default
32000 KB).

Specify parallel load


threads between 1 to
5 (default 2).
CONFIDENTIAL INFORMATION v6.x © 2018 Attunity
Setting Advanced Options
Specify Internal
Parameters

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


Setting Advanced Options
View Settings
Summary

CONFIDENTIAL INFORMATION v6.x © 2018 Attunity


Thanks!
attunity.com

You might also like