diff --git a/debezium-connector-mysql/pom.xml b/debezium-connector-mysql/pom.xml index 5ddf79739..7a83b4d53 100644 --- a/debezium-connector-mysql/pom.xml +++ b/debezium-connector-mysql/pom.xml @@ -172,7 +172,7 @@ - ${project.basedir}/src/test/docker/server/${version.mysql.server} + ${project.basedir}/src/test/docker/server my.cnf @@ -222,7 +222,7 @@ - ${project.basedir}/src/test/docker/server-gtids/${version.mysql.server} + ${project.basedir}/src/test/docker/server-gtids my.cnf @@ -276,7 +276,7 @@ - ${project.basedir}/src/test/docker/server-replica/${version.mysql.server} + ${project.basedir}/src/test/docker/server-replica my.cnf diff --git a/debezium-connector-mysql/src/test/docker/server-gtids/5.5/my.cnf b/debezium-connector-mysql/src/test/docker/server-gtids/5.5/my.cnf deleted file mode 100644 index 0e54301cd..000000000 --- a/debezium-connector-mysql/src/test/docker/server-gtids/5.5/my.cnf +++ /dev/null @@ -1,52 +0,0 @@ -# For advice on how to change settings please see -# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html - -[mysqld] -# -# Remove leading # and set to the amount of RAM for the most important data -# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. -# innodb_buffer_pool_size = 128M -# -# Remove leading # to turn on a very important data integrity option: logging -# changes to the binary log between backups. -# log_bin -# -# Remove leading # to set options mainly useful for reporting servers. -# The server defaults are faster for transactions and fast SELECTs. -# Adjust sizes as needed, experiment to find the optimal values. -# join_buffer_size = 128M -# sort_buffer_size = 2M -# read_rnd_buffer_size = 2M -skip-host-cache -skip-name-resolve -#datadir=/var/lib/mysql -#socket=/var/lib/mysql/mysql.sock -#secure-file-priv=/var/lib/mysql-files -user=mysql - -# Disabling symbolic-links is recommended to prevent assorted security risks -symbolic-links=0 - -#log-error=/var/log/mysqld.log -#pid-file=/var/run/mysqld/mysqld.pid - -# ---------------------------------------------- -# Debezium ingest -# ---------------------------------------------- - -# Enable binary replication log and set the prefix, expiration, and log format. -# The prefix is arbitrary, expiration can be short for integration tests but would -# be longer on a production system. Row-level info is required for ingest to work. -# Server ID is required, but this will vary on production systems -server-id = 112233 -log_bin = mysql-bin -expire_logs_days = 3 -binlog_format = row - -# ---------------------------------------------- -# Enable GTIDs on this master -# ---------------------------------------------- -# GTID wasn't added until MySQL 5.6.5 -# gtid_mode = on -# enforce_gtid_consistency = on - diff --git a/debezium-connector-mysql/src/test/docker/server-gtids/5.7/my.cnf b/debezium-connector-mysql/src/test/docker/server-gtids/5.7/my.cnf deleted file mode 100644 index e2dbf1a3f..000000000 --- a/debezium-connector-mysql/src/test/docker/server-gtids/5.7/my.cnf +++ /dev/null @@ -1,52 +0,0 @@ -# For advice on how to change settings please see -# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html - -[mysqld] -# -# Remove leading # and set to the amount of RAM for the most important data -# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. -# innodb_buffer_pool_size = 128M -# -# Remove leading # to turn on a very important data integrity option: logging -# changes to the binary log between backups. -# log_bin -# -# Remove leading # to set options mainly useful for reporting servers. -# The server defaults are faster for transactions and fast SELECTs. -# Adjust sizes as needed, experiment to find the optimal values. -# join_buffer_size = 128M -# sort_buffer_size = 2M -# read_rnd_buffer_size = 2M -skip-host-cache -skip-name-resolve -#datadir=/var/lib/mysql -#socket=/var/lib/mysql/mysql.sock -#secure-file-priv=/var/lib/mysql-files -user=mysql - -# Disabling symbolic-links is recommended to prevent assorted security risks -symbolic-links=0 - -#log-error=/var/log/mysqld.log -#pid-file=/var/run/mysqld/mysqld.pid - -# ---------------------------------------------- -# Debezium ingest -# ---------------------------------------------- - -# Enable binary replication log and set the prefix, expiration, and log format. -# The prefix is arbitrary, expiration can be short for integration tests but would -# be longer on a production system. Row-level info is required for ingest to work. -# Server ID is required, but this will vary on production systems -server-id = 112233 -log_bin = mysql-bin -expire_logs_days = 3 -binlog_format = row - -# ---------------------------------------------- -# Enable GTIDs on this master -# ---------------------------------------------- -gtid_mode = on -enforce_gtid_consistency = on - -default_authentication_plugin = mysql_native_password diff --git a/debezium-connector-mysql/src/test/docker/server-gtids/5.6/my.cnf b/debezium-connector-mysql/src/test/docker/server-gtids/my.cnf similarity index 55% rename from debezium-connector-mysql/src/test/docker/server-gtids/5.6/my.cnf rename to debezium-connector-mysql/src/test/docker/server-gtids/my.cnf index bd803ad09..113eb572b 100644 --- a/debezium-connector-mysql/src/test/docker/server-gtids/5.6/my.cnf +++ b/debezium-connector-mysql/src/test/docker/server-gtids/my.cnf @@ -1,6 +1,9 @@ # For advice on how to change settings please see -# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html +# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html +# -------------------------------------------------------------------------------------------- +# This section specifies 5.5 and cross-version common configurations +# -------------------------------------------------------------------------------------------- [mysqld] # # Remove leading # and set to the amount of RAM for the most important data @@ -43,6 +46,11 @@ log_bin = mysql-bin expire_logs_days = 3 binlog_format = row +# -------------------------------------------------------------------------------------------- +# This section specifies 5.6 specific configurations +# -------------------------------------------------------------------------------------------- +[mysqld-5.6] + # ---------------------------------------------- # Enable GTIDs on this master # ---------------------------------------------- @@ -54,3 +62,29 @@ enforce_gtid_consistency = on log_slave_updates = on default_authentication_plugin = mysql_native_password + +# -------------------------------------------------------------------------------------------- +# This section specifies 5.7 specific configurations +# -------------------------------------------------------------------------------------------- +[mysqld-5.7] + +# ---------------------------------------------- +# Enable GTIDs on this master +# ---------------------------------------------- +gtid_mode = on +enforce_gtid_consistency = on + +default_authentication_plugin = mysql_native_password + +# -------------------------------------------------------------------------------------------- +# This section specifies 8.0 specific configurations +# -------------------------------------------------------------------------------------------- +[mysqld-8.0] + +# ---------------------------------------------- +# Enable GTIDs on this master +# ---------------------------------------------- +gtid_mode = on +enforce_gtid_consistency = on + +default_authentication_plugin = mysql_native_password \ No newline at end of file diff --git a/debezium-connector-mysql/src/test/docker/server-replica/5.5/my.cnf b/debezium-connector-mysql/src/test/docker/server-replica/5.5/my.cnf deleted file mode 100644 index 25c36c134..000000000 --- a/debezium-connector-mysql/src/test/docker/server-replica/5.5/my.cnf +++ /dev/null @@ -1,52 +0,0 @@ -# For advice on how to change settings please see -# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html - -[mysqld] -# -# Remove leading # and set to the amount of RAM for the most important data -# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. -# innodb_buffer_pool_size = 128M -# -# Remove leading # to turn on a very important data integrity option: logging -# changes to the binary log between backups. -# log_bin -# -# Remove leading # to set options mainly useful for reporting servers. -# The server defaults are faster for transactions and fast SELECTs. -# Adjust sizes as needed, experiment to find the optimal values. -# join_buffer_size = 128M -# sort_buffer_size = 2M -# read_rnd_buffer_size = 2M -skip-host-cache -skip-name-resolve -#datadir=/var/lib/mysql -#socket=/var/lib/mysql/mysql.sock -#secure-file-priv=/var/lib/mysql-files -user=mysqlreplica - -# Disabling symbolic-links is recommended to prevent assorted security risks -symbolic-links=0 - -#log-error=/var/log/mysqld.log -#pid-file=/var/run/mysqld/mysqld.pid - -# ---------------------------------------------- -# Enable GTIDs on this master -# ---------------------------------------------- -# GTIDs were not added until 5.6.5 -# gtid_mode = on -# enforce_gtid_consistency = on -log_slave_updates = on - -# ---------------------------------------------- -# Debezium ingest -# ---------------------------------------------- - -# Enable binary replication log and set the prefix, expiration, and log format. -# The prefix is arbitrary, expiration can be short for integration tests but would -# be longer on a production system. Row-level info is required for ingest to work. -# Server ID is required, but this will vary on production systems -server-id = 445566 -log_bin = mysql-bin-slave -expire_logs_days = 3 -binlog_format = row diff --git a/debezium-connector-mysql/src/test/docker/server-replica/5.7/my.cnf b/debezium-connector-mysql/src/test/docker/server-replica/5.7/my.cnf deleted file mode 100644 index 2eacd4283..000000000 --- a/debezium-connector-mysql/src/test/docker/server-replica/5.7/my.cnf +++ /dev/null @@ -1,53 +0,0 @@ -# For advice on how to change settings please see -# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html - -[mysqld] -# -# Remove leading # and set to the amount of RAM for the most important data -# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. -# innodb_buffer_pool_size = 128M -# -# Remove leading # to turn on a very important data integrity option: logging -# changes to the binary log between backups. -# log_bin -# -# Remove leading # to set options mainly useful for reporting servers. -# The server defaults are faster for transactions and fast SELECTs. -# Adjust sizes as needed, experiment to find the optimal values. -# join_buffer_size = 128M -# sort_buffer_size = 2M -# read_rnd_buffer_size = 2M -skip-host-cache -skip-name-resolve -#datadir=/var/lib/mysql -#socket=/var/lib/mysql/mysql.sock -#secure-file-priv=/var/lib/mysql-files -user=mysqlreplica - -# Disabling symbolic-links is recommended to prevent assorted security risks -symbolic-links=0 - -#log-error=/var/log/mysqld.log -#pid-file=/var/run/mysqld/mysqld.pid - -# ---------------------------------------------- -# Enable GTIDs on this master -# ---------------------------------------------- -gtid_mode = on -enforce_gtid_consistency = on -log_slave_updates = on - -# ---------------------------------------------- -# Debezium ingest -# ---------------------------------------------- - -# Enable binary replication log and set the prefix, expiration, and log format. -# The prefix is arbitrary, expiration can be short for integration tests but would -# be longer on a production system. Row-level info is required for ingest to work. -# Server ID is required, but this will vary on production systems -server-id = 445566 -log_bin = mysql-bin-slave -expire_logs_days = 3 -binlog_format = row - -default_authentication_plugin = mysql_native_password diff --git a/debezium-connector-mysql/src/test/docker/server-replica/5.6/my.cnf b/debezium-connector-mysql/src/test/docker/server-replica/my.cnf similarity index 58% rename from debezium-connector-mysql/src/test/docker/server-replica/5.6/my.cnf rename to debezium-connector-mysql/src/test/docker/server-replica/my.cnf index 2eacd4283..3c26d5cf2 100644 --- a/debezium-connector-mysql/src/test/docker/server-replica/5.6/my.cnf +++ b/debezium-connector-mysql/src/test/docker/server-replica/my.cnf @@ -1,6 +1,9 @@ # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html +# -------------------------------------------------------------------------------------------- +# This section specifies 5.5 and cross-version common configurations +# -------------------------------------------------------------------------------------------- [mysqld] # # Remove leading # and set to the amount of RAM for the most important data @@ -33,14 +36,8 @@ symbolic-links=0 # ---------------------------------------------- # Enable GTIDs on this master # ---------------------------------------------- -gtid_mode = on -enforce_gtid_consistency = on log_slave_updates = on -# ---------------------------------------------- -# Debezium ingest -# ---------------------------------------------- - # Enable binary replication log and set the prefix, expiration, and log format. # The prefix is arbitrary, expiration can be short for integration tests but would # be longer on a production system. Row-level info is required for ingest to work. @@ -50,4 +47,29 @@ log_bin = mysql-bin-slave expire_logs_days = 3 binlog_format = row +# -------------------------------------------------------------------------------------------- +# This section specifies 5.6 specific configurations +# -------------------------------------------------------------------------------------------- +[mysqld-5.6] +gtid_mode = on +enforce_gtid_consistency = on + default_authentication_plugin = mysql_native_password + +# -------------------------------------------------------------------------------------------- +# This section specifies 5.7 specific configurations +# -------------------------------------------------------------------------------------------- +[mysqld-5.7] +gtid_mode = on +enforce_gtid_consistency = on + +default_authentication_plugin = mysql_native_password + +# -------------------------------------------------------------------------------------------- +# This section specifies 8.0 specific configurations +# -------------------------------------------------------------------------------------------- +[mysqld-8.0] +gtid_mode = on +enforce_gtid_consistency = on + +default_authentication_plugin = mysql_native_password \ No newline at end of file diff --git a/debezium-connector-mysql/src/test/docker/server/5.5/my.cnf b/debezium-connector-mysql/src/test/docker/server/5.5/my.cnf deleted file mode 100644 index f941687f6..000000000 --- a/debezium-connector-mysql/src/test/docker/server/5.5/my.cnf +++ /dev/null @@ -1,47 +0,0 @@ -# For advice on how to change settings please see -# http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html - -[mysqld] -# -# Remove leading # and set to the amount of RAM for the most important data -# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. -# innodb_buffer_pool_size = 128M -# -# Remove leading # to turn on a very important data integrity option: logging -# changes to the binary log between backups. -# log_bin -# -# Remove leading # to set options mainly useful for reporting servers. -# The server defaults are faster for transactions and fast SELECTs. -# Adjust sizes as needed, experiment to find the optimal values. -# join_buffer_size = 128M -# sort_buffer_size = 2M -# read_rnd_buffer_size = 2M -skip-host-cache -skip-name-resolve -#datadir=/var/lib/mysql -#socket=/var/lib/mysql/mysql.sock -#secure-file-priv=/var/lib/mysql-files -user=mysql - -# Disabling symbolic-links is recommended to prevent assorted security risks -symbolic-links=0 - -#log-error=/var/log/mysqld.log -#pid-file=/var/run/mysqld/mysqld.pid - -# ---------------------------------------------- -# Debezium ingest -# ---------------------------------------------- - -# Enable binary replication log and set the prefix, expiration, and log format. -# The prefix is arbitrary, expiration can be short for integration tests but would -# be longer on a production system. Row-level info is required for ingest to work. -# Server ID is required, but this will vary on production systems -server-id = 112233 -log_bin = mysql-bin -expire_logs_days = 1 -binlog_format = row - - - diff --git a/debezium-connector-mysql/src/test/docker/server/5.6/my.cnf b/debezium-connector-mysql/src/test/docker/server/5.6/my.cnf deleted file mode 100644 index 125d48ed7..000000000 --- a/debezium-connector-mysql/src/test/docker/server/5.6/my.cnf +++ /dev/null @@ -1,48 +0,0 @@ -# For advice on how to change settings please see -# http://dev.mysql.com/doc/refman/5.6/en/server-configuration-defaults.html - -[mysqld] -# -# Remove leading # and set to the amount of RAM for the most important data -# cache in MySQL. Start at 70% of total RAM for dedicated server, else 10%. -# innodb_buffer_pool_size = 128M -# -# Remove leading # to turn on a very important data integrity option: logging -# changes to the binary log between backups. -# log_bin -# -# Remove leading # to set options mainly useful for reporting servers. -# The server defaults are faster for transactions and fast SELECTs. -# Adjust sizes as needed, experiment to find the optimal values. -# join_buffer_size = 128M -# sort_buffer_size = 2M -# read_rnd_buffer_size = 2M -skip-host-cache -skip-name-resolve -#datadir=/var/lib/mysql -#socket=/var/lib/mysql/mysql.sock -#secure-file-priv=/var/lib/mysql-files -user=mysql - -# Disabling symbolic-links is recommended to prevent assorted security risks -symbolic-links=0 - -#log-error=/var/log/mysqld.log -#pid-file=/var/run/mysqld/mysqld.pid - -# ---------------------------------------------- -# Debezium ingest -# ---------------------------------------------- - -# Enable binary replication log and set the prefix, expiration, and log format. -# The prefix is arbitrary, expiration can be short for integration tests but would -# be longer on a production system. Row-level info is required for ingest to work. -# Server ID is required, but this will vary on production systems -server-id = 112233 -log_bin = mysql-bin -expire_logs_days = 1 -binlog_format = row - -default_authentication_plugin = mysql_native_password - - diff --git a/debezium-connector-mysql/src/test/docker/server/5.7/my.cnf b/debezium-connector-mysql/src/test/docker/server/my.cnf similarity index 57% rename from debezium-connector-mysql/src/test/docker/server/5.7/my.cnf rename to debezium-connector-mysql/src/test/docker/server/my.cnf index ebefc8c7f..b885a30d2 100644 --- a/debezium-connector-mysql/src/test/docker/server/5.7/my.cnf +++ b/debezium-connector-mysql/src/test/docker/server/my.cnf @@ -1,6 +1,9 @@ # For advice on how to change settings please see # http://dev.mysql.com/doc/refman/5.7/en/server-configuration-defaults.html +# -------------------------------------------------------------------------------------------- +# This section specifies 5.5 and cross-version common configurations +# -------------------------------------------------------------------------------------------- [mysqld] # # Remove leading # and set to the amount of RAM for the most important data @@ -30,10 +33,6 @@ symbolic-links=0 #log-error=/var/log/mysqld.log #pid-file=/var/run/mysqld/mysqld.pid -# ---------------------------------------------- -# Debezium ingest -# ---------------------------------------------- - # Enable binary replication log and set the prefix, expiration, and log format. # The prefix is arbitrary, expiration can be short for integration tests but would # be longer on a production system. Row-level info is required for ingest to work. @@ -43,6 +42,20 @@ log_bin = mysql-bin expire_logs_days = 1 binlog_format = row +# -------------------------------------------------------------------------------------------- +# This section specifies 5.6 specific configurations +# -------------------------------------------------------------------------------------------- +[mysqld-5.6] default_authentication_plugin = mysql_native_password +# -------------------------------------------------------------------------------------------- +# This section specifies 5.7 specific configurations +# -------------------------------------------------------------------------------------------- +[mysqld-5.7] +default_authentication_plugin = mysql_native_password +# -------------------------------------------------------------------------------------------- +# This section specifies 8.0 specific configurations +# -------------------------------------------------------------------------------------------- +[mysqld-8.0] +default_authentication_plugin = mysql_native_password \ No newline at end of file