⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.124
Server IP:
50.28.103.30
Server:
Linux host.jcukjv-lwsites.com 4.18.0-553.22.1.el8_10.x86_64 #1 SMP Tue Sep 24 05:16:59 EDT 2024 x86_64
Server Software:
nginx/1.28.0
PHP Version:
8.3.12
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
www
/
server
/
mysql
/
mysql-test
/
suite
/
binlog
/
r
/
View File Name :
binlog_format_switch_in_tmp_table.result
SELECT @@SESSION.binlog_format; @@SESSION.binlog_format MIXED CREATE TABLE t1 (a VARCHAR(100)); CREATE TEMPORARY TABLE t2 (a VARCHAR(100)); # Test allow switching @@SESSION.binlog_format from MIXED to STATEMENT # when there are open temp tables and we are logging in statement based format. SET SESSION binlog_format = STATEMENT; SELECT @@SESSION.binlog_format; @@SESSION.binlog_format STATEMENT # Test allow switching @@SESSION.binlog_format from STATEMENT to # STATEMENT when there are open temp tables. SET SESSION binlog_format = STATEMENT; SELECT @@SESSION.binlog_format; @@SESSION.binlog_format STATEMENT INSERT INTO t1 VALUES ('statement based'); SELECT @@SESSION.binlog_format; @@SESSION.binlog_format STATEMENT # Test allow switching @@SESSION.binlog_format from STATEMENT to # MIXED when there are open temp tables. SET SESSION binlog_format = MIXED; SELECT @@SESSION.binlog_format; @@SESSION.binlog_format MIXED # Test allow switching @@SESSION.binlog_format from MIXED to MIXED # when there are open temp tables. SET SESSION binlog_format = MIXED; SELECT @@SESSION.binlog_format; @@SESSION.binlog_format MIXED INSERT INTO t2 VALUES (UUID()); SELECT @@SESSION.binlog_format; @@SESSION.binlog_format MIXED # Test forbit switching @@SESSION.binlog_format from MIXED to STATEMENT # when there are open temp tables and we are logging in row based format. SET SESSION binlog_format = STATEMENT; ERROR HY000: Cannot switch out of the row-based binary log format when the session has open temporary tables SELECT @@SESSION.binlog_format; @@SESSION.binlog_format MIXED SET SESSION binlog_format = ROW; SELECT @@SESSION.binlog_format; @@SESSION.binlog_format ROW INSERT INTO t1 VALUES ('row based'); # Test allow switching @@SESSION.binlog_format from ROW to MIXED # when there are open temp tables. SET SESSION binlog_format = MIXED; SELECT @@SESSION.binlog_format; @@SESSION.binlog_format MIXED INSERT INTO t1 VALUES ('row based'); # Test allow switching @@SESSION.binlog_format from MIXED to ROW # when there are open temp tables. SET SESSION binlog_format = ROW; SELECT @@SESSION.binlog_format; @@SESSION.binlog_format ROW # Test allow switching @@SESSION.binlog_format from ROW to ROW # when there are open temp tables. SET SESSION binlog_format = ROW; SELECT @@SESSION.binlog_format; @@SESSION.binlog_format ROW INSERT INTO t1 VALUES ('row based'); # Test forbit switching @@SESSION.binlog_format from ROW to STATEMENT # when there are open temp tables. SET SESSION binlog_format = STATEMENT; ERROR HY000: Cannot switch out of the row-based binary log format when the session has open temporary tables SELECT @@SESSION.binlog_format; @@SESSION.binlog_format ROW DROP TEMPORARY TABLE t2; DROP TABLE t1;