Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 0 additions & 19 deletions config/mycnf/default-fast.cnf
Original file line number Diff line number Diff line change
@@ -1,41 +1,27 @@
# basic config parameters for all db instances in the grid

sql_mode = STRICT_TRANS_TABLES
back_log = 50
binlog_format = statement
character_set_server = utf8
collation_server = utf8_general_ci
connect_timeout = 30
datadir = {{.DataDir}}
default-storage-engine = innodb
expire_logs_days = 3
innodb_autoextend_increment = 1
innodb_buffer_pool_size = 64M
innodb_data_file_path = ibdata1:10M:autoextend
innodb_data_home_dir = {{.InnodbDataHomeDir}}
innodb_file_per_table
innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
innodb_lock_wait_timeout = 20
innodb_log_buffer_size = 1M
innodb_log_file_size = 4M
innodb_log_files_in_group = 2
innodb_log_group_home_dir = {{.InnodbLogGroupHomeDir}}
innodb_max_dirty_pages_pct = 75
innodb_thread_concurrency = 2
key_buffer_size = 2M
log-error = {{.ErrorLogPath}}
long_query_time = 2
max_allowed_packet = 16M
max_connections = 200
net_write_timeout = 60
pid-file = {{.PidFile}}
port = {{.MysqlPort}}
# all db instances should start in read-only mode - once the db is started and
# fully functional, we'll push it into read-write mode
read-only
read_buffer_size = 1M
read_rnd_buffer_size = 1M
server-id = {{.ServerID}}
skip-name-resolve
# we now need networking for replication. this is a tombstone to simpler times.
Expand All @@ -49,9 +35,4 @@ slave_load_tmpdir = {{.SlaveLoadTmpDir}}
slow-query-log
slow-query-log-file = {{.SlowLogPath}}
socket = {{.SocketFile}}
sort_buffer_size = 2M
table_open_cache = 2048
thread_cache_size = 200
tmpdir = {{.TmpDir}}
tmp_table_size = 32M
transaction-isolation = REPEATABLE-READ
20 changes: 0 additions & 20 deletions config/mycnf/default.cnf
Original file line number Diff line number Diff line change
@@ -1,41 +1,26 @@
# basic config parameters for all db instances in the grid

sql_mode = STRICT_TRANS_TABLES
back_log = 50
binlog_format = statement
character_set_server = utf8
collation_server = utf8_general_ci
connect_timeout = 30
datadir = {{.DataDir}}
default-storage-engine = innodb
expire_logs_days = 3
innodb_autoextend_increment = 64
innodb_buffer_pool_size = 32M
innodb_data_file_path = ibdata1:10M:autoextend
innodb_data_home_dir = {{.InnodbDataHomeDir}}
innodb_file_per_table
innodb_flush_log_at_trx_commit = 2
innodb_flush_method = O_DIRECT
innodb_lock_wait_timeout = 20
innodb_log_buffer_size = 8M
innodb_log_file_size = 64M
innodb_log_files_in_group = 2
innodb_log_group_home_dir = {{.InnodbLogGroupHomeDir}}
innodb_max_dirty_pages_pct = 75
innodb_thread_concurrency = 20
key_buffer_size = 32M
log-error = {{.ErrorLogPath}}
long_query_time = 2
max_allowed_packet = 64M
max_connections = 500
net_write_timeout = 60
pid-file = {{.PidFile}}
port = {{.MysqlPort}}
# all db instances should start in read-only mode - once the db is started and
# fully functional, we'll push it into read-write mode
read-only
read_buffer_size = 8M
read_rnd_buffer_size = 8M
server-id = {{.ServerID}}
skip-name-resolve
# all db instances should skip the slave startup - that way we can do any
Expand All @@ -47,9 +32,4 @@ slave_load_tmpdir = {{.SlaveLoadTmpDir}}
slow-query-log
slow-query-log-file = {{.SlowLogPath}}
socket = {{.SocketFile}}
sort_buffer_size = 2M
table_open_cache = 2048
thread_cache_size = 200
tmpdir = {{.TmpDir}}
tmp_table_size = 32M
transaction-isolation = REPEATABLE-READ
9 changes: 9 additions & 0 deletions go/mysql/endtoend/replication_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1020,6 +1020,15 @@ func TestRowReplicationTypes(t *testing.T) {
t.Fatal(err)
}

// The CREATE TABLE below fails because the timestamp columns
// do not specify default values, and MySQL has trouble figuring
// out the automatic rules. If we just disable the automatic rules
// (the MySQL 8.0+ default) the create table should pass. This is better
// than disabling strict mode etc.
if _, err := dConn.ExecuteFetch("SET explicit_defaults_for_timestamp=1", 0, false); err != nil {
t.Fatal(err)
}

// Create the table with all fields.
createTable := "create table replicationtypes(id int"
for _, tcase := range testcases {
Expand Down