File: innodb_innochecksum_3gb.result

package info (click to toggle)
mysql-8.0 8.0.43-3
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,273,924 kB
  • sloc: cpp: 4,684,605; ansic: 412,450; pascal: 108,398; java: 83,641; perl: 30,221; cs: 27,067; sql: 26,594; sh: 24,181; python: 21,816; yacc: 17,169; php: 11,522; xml: 7,388; javascript: 7,076; makefile: 2,194; lex: 1,075; awk: 670; asm: 520; objc: 183; ruby: 97; lisp: 86
file content (93 lines) | stat: -rw-r--r-- 3,031 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
DROP TABLE IF EXISTS tab2;
SHOW variables like '%innodb_checksum_algorithm%';
Variable_name	Value
innodb_checksum_algorithm	crc32
SELECT @@default_storage_engine;
@@default_storage_engine
InnoDB
CREATE TABLE tab2(col_1 CHAR (255) ,
col_2 VARCHAR (255), col_3 longtext,
col_4 longtext,col_5 BLOB,
col_6 LONGBLOB , col_7 bigint)
engine = innodb ;
CREATE INDEX idx1 ON tab2(col_3(10));
CREATE INDEX idx2 ON tab2(col_4(10));
CREATE INDEX idx3 ON tab2(col_5(10));
# Generate a input text file for loading the table
# check whether file exist
# load the data into the table
SELECT COUNT(*) FROM tab2;
COUNT(*)
7014000
# Stop the server
# Rewrite the tab2.ibd file into new checksum=CRC32
# Restart the DB server with default innodb_checksum_algorithm=InnoDB (Default)
# no need to pass to the server.
# Load the with repeat function
SET @col_1 = repeat('A', 5);
SET @col_2 = repeat('B', 20);
SET @col_3 = repeat('D', 100);
SET @col_4 = repeat('E', 100);
SET @col_5 = repeat('F', 100);
SET @col_6 = repeat('G', 100);
# Check the table status with DML
INSERT INTO tab2(col_1,col_2,col_3,col_4,col_5,col_6,col_7)
VALUES (@col_1,@col_2,@col_3,@col_4,@cl_5,@col_6,1000);
# Check with Read operation by record count
SELECT COUNT(*) FROM tab2 where col_7=1000;
COUNT(*)
1
# Stop the server
# Rewrite the tab2.ibd file into new checksum=None
# Check the page type summary with longform for *.ibd

File::tab#.ibd
================PAGE TYPE SUMMARY==============
#PAGE_COUNT	PAGE_TYPE
===============================================
  #	Index page
       #	SDI Index page
       #	Undo log page
       #	Inode page
       #	Insert buffer free list page
    #	Freshly allocated page
      #	Insert buffer bitmap
       #	System page
       #	Transaction system page
       #	File Space Header
      #	Extent descriptor page
       #	BLOB page
       #	Compressed BLOB page
       #	Subsequent Compressed BLOB page
       #	SDI BLOB page
       #	Compressed SDI BLOB page
       #	Other type of page
===============================================
Additional information:
Undo page type: # insert, # update, # other
Undo page state: # active, # cached, # to_free, # to_purge, # prepared, # other
# Page type dump for tab2.ibd
# check whether dump.txt file exist
# Restart the DB server with default innodb_checksum_algorithm=CRC32
SHOW variables like '%innodb_checksum_algorithm%';
Variable_name	Value
innodb_checksum_algorithm	crc32
# Check the default engine is always InnoDB after restart
SELECT @@default_storage_engine;
@@default_storage_engine
InnoDB
# Load the with repeat function
SET @col_1 = repeat('G', 5);
SET @col_2 = repeat('H', 20);
SET @col_3 = repeat('I', 100);
SET @col_4 = repeat('J', 100);
SET @col_5 = repeat('K', 100);
SET @col_6 = repeat('L', 100);
# Check the table status with DML
INSERT INTO tab2(col_1,col_2,col_3,col_4,col_5,col_6,col_7)
VALUES (@col_1,@col_2,@col_3,@col_4,@cl_5,@col_6,2000);
# Check with Read operation that record count
SELECT COUNT(*) FROM tab2 where col_7=2000;
COUNT(*)
1
DROP TABLE IF EXISTS tab2;