⚝
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
/
t
/
View File Name :
partition_binlog.test
--source include/have_log_bin.inc --source include/have_partition.inc --disable_warnings DROP TABLE IF EXISTS t1; --enable_warnings --echo # --echo # Bug#58147: ALTER TABLE w/ TRUNCATE PARTITION fails --echo # but the statement is written to binlog --echo # CREATE TABLE t1(id INT) PARTITION BY RANGE (id) (PARTITION p0 VALUES LESS THAN (100), PARTITION pmax VALUES LESS THAN (MAXVALUE)); INSERT INTO t1 VALUES (1), (10), (100), (1000); RESET MASTER; --let $binlog_file=query_get_value(SHOW MASTER STATUS, File, 1) --let $binlog_start=query_get_value(SHOW MASTER STATUS, Position, 1) --error ER_UNKNOWN_PARTITION ALTER TABLE t1 TRUNCATE PARTITION p1; --error ER_DROP_PARTITION_NON_EXISTENT ALTER TABLE t1 DROP PARTITION p1; --echo # No error returned, output in table format instead: ALTER TABLE t1 ANALYZE PARTITION p1; ALTER TABLE t1 CHECK PARTITION p1; ALTER TABLE t1 OPTIMIZE PARTITION p1; ALTER TABLE t1 REPAIR PARTITION p1; ALTER TABLE t1 ANALYZE PARTITION p0; ALTER TABLE t1 CHECK PARTITION p0; ALTER TABLE t1 OPTIMIZE PARTITION p0; ALTER TABLE t1 REPAIR PARTITION p0; ALTER TABLE t1 TRUNCATE PARTITION p0; ALTER TABLE t1 DROP PARTITION p0; --source include/show_binlog_events.inc DROP TABLE t1;