md5sum mysql-5.5.58.tar.gz 615d82fb528c8c91048685abaf67ed50 mysql-5.5.58.tar.gz -- inject patch provided in the report cmake . -DCMAKE_INSTALL_PREFIX="/export/umesh/server/source/bugs/src_build/88754/mysql-5.5.58" -DBUILD_CONFIG=mysql_release -DFEATURE_SET=community -DWITH_DEBUG=ON make -j16 make install [umshastr@hod03]/export/umesh/server/source/bugs/src_build/88754/mysql-5.5.58: cat docs/INFO_SRC commit: be111ffd32b6aa1042a236e34f6775d6f9854b7a date: 2017-09-13 20:45:34 +0530 build-date: 2017-09-13 17:20:47 +0200 short: be111ff branch: mysql-5.5.58-release MySQL source 5.5.58 rm -rf master/ scripts/mysql_install_db --basedir=$PWD --datadir=$PWD/master/ bin/mysqld --no-defaults --log-bin --server_id=1 --binlog_format=row --basedir=$PWD --datadir=$PWD/master/ --core-file --socket=/tmp/mysql_master.sock --port=3307 --log-error=$PWD/master/log.err 2>&1 & rm -rf slave/ scripts/mysql_install_db --basedir=$PWD --datadir=$PWD/slave/ bin/mysqld --no-defaults --server_id=2 --basedir=$PWD --datadir=$PWD/slave --core-file --socket=/tmp/mysql_slave.sock --port=3308 --log-error=$PWD/slave/log.err 2>&1 & -- -- Master [umshastr@hod03]/export/umesh/server/source/bugs/src_build/88754/mysql-5.5.58: bin/mysql -uroot -S /tmp/mysql_master.sock --prompt="Master>" Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.5.58-debug-log MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. Master> Master> Master>CREATE USER 'repl'@'localhost' IDENTIFIED BY 'slavepass'; Query OK, 0 rows affected (0.00 sec) Master>GRANT REPLICATION SLAVE ON *.* TO 'repl'@'localhost'; Query OK, 0 rows affected (0.00 sec) Master> Master>CREATE USER 'repl'@'127.0.0.1' IDENTIFIED BY 'slavepass'; Query OK, 0 rows affected (0.00 sec) Master>GRANT REPLICATION SLAVE ON *.* TO 'repl'@'127.0.0.1'; Query OK, 0 rows affected (0.00 sec) Master>FLUSH PRIVILEGES; Query OK, 0 rows affected (0.00 sec) Master>show master status; +------------------+----------+--------------+------------------+ | File | Position | Binlog_Do_DB | Binlog_Ignore_DB | +------------------+----------+--------------+------------------+ | hod03-bin.000001 | 666 | | | +------------------+----------+--------------+------------------+ 1 row in set (0.00 sec) -- Slave [umshastr@hod03]/export/umesh/server/source/bugs/src_build/88754/mysql-5.5.58: bin/mysql -uroot -S /tmp/mysql_slave.sock --prompt="Slave>" Welcome to the MySQL monitor. Commands end with ; or \g. Your MySQL connection id is 1 Server version: 5.5.58-debug MySQL Community Server (GPL) Copyright (c) 2000, 2017, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement. Slave>CHANGE MASTER TO -> MASTER_HOST='localhost', -> MASTER_PORT=3307, -> MASTER_USER='repl', -> MASTER_PASSWORD='slavepass', -> MASTER_LOG_FILE='hod03-bin.000001', -> MASTER_LOG_POS=666; Query OK, 0 rows affected (0.00 sec) Slave>start slave; Query OK, 0 rows affected (0.00 sec) Slave>show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: localhost Master_User: repl Master_Port: 3307 Connect_Retry: 60 Master_Log_File: hod03-bin.000001 Read_Master_Log_Pos: 666 Relay_Log_File: hod03-relay-bin.000002 Relay_Log_Pos: 253 Relay_Master_Log_File: hod03-bin.000001 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 666 Relay_Log_Space: 409 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 1 row in set (0.00 sec) -- Master Master>use test Database changed Master>create table tbl(id int); Query OK, 0 rows affected (0.00 sec) Master>flush tables; Query OK, 0 rows affected (0.00 sec) Master>set debug='+d,before_assign_new_table_id'; Query OK, 0 rows affected (0.00 sec) Master>insert into tbl values(1); Query OK, 1 row affected (0.01 sec) Master>select * from tbl; +------+ | id | +------+ | 1 | +------+ 1 row in set (0.00 sec) Master>show master logs; +------------------+-----------+ | Log_name | File_size | +------------------+-----------+ | hod03-bin.000001 | 999 | +------------------+-----------+ 1 row in set (0.00 sec) Master>SHOW BINLOG EVENTS; +------------------+-----+-------------+-----------+-------------+----------------------------------------------------------+ | Log_name | Pos | Event_type | Server_id | End_log_pos | Info | +------------------+-----+-------------+-----------+-------------+----------------------------------------------------------+ | hod03-bin.000001 | 4 | Format_desc | 1 | 107 | Server ver: 5.5.58-debug-log, Binlog ver: 4 | | hod03-bin.000001 | 107 | Query | 1 | 222 | CREATE USER 'repl'@'localhost' IDENTIFIED BY 'slavepass' | | hod03-bin.000001 | 222 | Query | 1 | 349 | GRANT REPLICATION SLAVE ON *.* TO 'repl'@'localhost' | | hod03-bin.000001 | 349 | Query | 1 | 464 | CREATE USER 'repl'@'127.0.0.1' IDENTIFIED BY 'slavepass' | | hod03-bin.000001 | 464 | Query | 1 | 591 | GRANT REPLICATION SLAVE ON *.* TO 'repl'@'127.0.0.1' | | hod03-bin.000001 | 591 | Query | 1 | 666 | FLUSH PRIVILEGES | | hod03-bin.000001 | 666 | Query | 1 | 753 | use `test`; create table tbl(id int) | | hod03-bin.000001 | 753 | Query | 1 | 828 | use `test`; flush tables | | hod03-bin.000001 | 828 | Query | 1 | 896 | BEGIN | | hod03-bin.000001 | 896 | Table_map | 1 | 938 | table_id: 17179869218 (test.tbl) | | hod03-bin.000001 | 938 | Write_rows | 1 | 972 | table_id: 17179869218 flags: STMT_END_F | | hod03-bin.000001 | 972 | Xid | 1 | 999 | COMMIT /* xid=21 */ | +------------------+-----+-------------+-----------+-------------+----------------------------------------------------------+ 12 rows in set (0.00 sec) Master> -- slave Slave>use test Reading table information for completion of table and column names You can turn off this feature to get a quicker startup with -A Database changed Slave>select * from tbl; Empty set (0.00 sec) Slave>show slave status\G *************************** 1. row *************************** Slave_IO_State: Waiting for master to send event Master_Host: localhost Master_User: repl Master_Port: 3307 Connect_Retry: 60 Master_Log_File: hod03-bin.000001 Read_Master_Log_Pos: 999 Relay_Log_File: hod03-relay-bin.000002 Relay_Log_Pos: 586 Relay_Master_Log_File: hod03-bin.000001 Slave_IO_Running: Yes Slave_SQL_Running: Yes Replicate_Do_DB: Replicate_Ignore_DB: Replicate_Do_Table: Replicate_Ignore_Table: Replicate_Wild_Do_Table: Replicate_Wild_Ignore_Table: Last_Errno: 0 Last_Error: Skip_Counter: 0 Exec_Master_Log_Pos: 999 Relay_Log_Space: 742 Until_Condition: None Until_Log_File: Until_Log_Pos: 0 Master_SSL_Allowed: No Master_SSL_CA_File: Master_SSL_CA_Path: Master_SSL_Cert: Master_SSL_Cipher: Master_SSL_Key: Seconds_Behind_Master: 0 Master_SSL_Verify_Server_Cert: No Last_IO_Errno: 0 Last_IO_Error: Last_SQL_Errno: 0 Last_SQL_Error: Replicate_Ignore_Server_Ids: Master_Server_Id: 1 1 row in set (0.00 sec) Slave>SHOW RELAYLOG EVENTS; +------------------------+-----+-------------+-----------+-------------+-----------------------------------------+ | Log_name | Pos | Event_type | Server_id | End_log_pos | Info | +------------------------+-----+-------------+-----------+-------------+-----------------------------------------+ | hod03-relay-bin.000001 | 4 | Format_desc | 2 | 107 | Server ver: 5.5.58-debug, Binlog ver: 4 | | hod03-relay-bin.000001 | 107 | Rotate | 2 | 156 | hod03-relay-bin.000002;pos=4 | +------------------------+-----+-------------+-----------+-------------+-----------------------------------------+ 2 rows in set (0.00 sec) Slave>SHOW RELAYLOG EVENTS in 'hod03-relay-bin.000002'; +------------------------+-----+-------------+-----------+-------------+---------------------------------------------+ | Log_name | Pos | Event_type | Server_id | End_log_pos | Info | +------------------------+-----+-------------+-----------+-------------+---------------------------------------------+ | hod03-relay-bin.000002 | 4 | Format_desc | 2 | 107 | Server ver: 5.5.58-debug, Binlog ver: 4 | | hod03-relay-bin.000002 | 107 | Rotate | 1 | 0 | hod03-bin.000001;pos=666 | | hod03-relay-bin.000002 | 150 | Format_desc | 1 | 0 | Server ver: 5.5.58-debug-log, Binlog ver: 4 | | hod03-relay-bin.000002 | 253 | Query | 1 | 753 | use `test`; create table tbl(id int) | | hod03-relay-bin.000002 | 340 | Query | 1 | 828 | use `test`; flush tables | | hod03-relay-bin.000002 | 415 | Query | 1 | 896 | BEGIN | | hod03-relay-bin.000002 | 483 | Table_map | 1 | 938 | table_id: 17179869218 (test.tbl) | | hod03-relay-bin.000002 | 525 | Write_rows | 1 | 972 | table_id: 17179869218 flags: STMT_END_F | | hod03-relay-bin.000002 | 559 | Xid | 1 | 999 | COMMIT /* xid=21 */ | +------------------------+-----+-------------+-----------+-------------+---------------------------------------------+ 9 rows in set (0.00 sec)