File: tablespace_portability.inc

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 (391 lines) | stat: -rw-r--r-- 17,255 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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
# Remember some variables.
LET $MYSQLD_DATADIR = `select @@datadir`;
LET $INNODB_PAGE_SIZE = `select @@innodb_page_size`;

# Create some relative remote directories
--mkdir $MYSQLD_DATADIR/../spaces
--mkdir $MYSQLD_DATADIR/../remote
--mkdir $MYSQL_TMP_DIR/portability
--mkdir $MYSQL_TMP_DIR/portability/tables
--mkdir $MYSQL_TMP_DIR/portability/spaces
--mkdir $MYSQL_TMP_DIR/portability/altogether

--echo #
--echo # Create the sample database to test for portability.
--echo #

CREATE TABLE ibport_t1 (a INT, b varchar(30), c int, key ka(a), key kb(b)) ENGINE=InnoDB;
INSERT INTO ibport_t1 VALUES (1, 'One', 11), (2, 'two', 22), (3, 'three', 33), (4, 'four', 44);

CREATE TABLESPACE ibport_s1 ADD DATAFILE 'ibport_s1_gen.ibd' ENGINE=InnoDB;
CREATE TABLE ibport_t5 (a INT, b varchar(30), c int, key ka(a), key kb(b)) ENGINE=InnoDB TABLESPACE ibport_s1;
INSERT INTO ibport_t5 VALUES (1, 'One', 11), (2, 'two', 22), (3, 'three', 33), (4, 'four', 44);

CREATE TABLESPACE ibport_s2 ADD DATAFILE '../spaces/ibport_s2_gen.ibd' ENGINE=InnoDB FILE_BLOCK_SIZE=4k;
CREATE TABLE ibport_t6 (a INT, b varchar(30), c int, key ka(a), key kb(b)) ENGINE=InnoDB TABLESPACE ibport_s2
  ROW_FORMAT=COMPRESSED KEY_BLOCK_SIZE=4;
INSERT INTO ibport_t6 VALUES (1, 'One', 11), (2, 'two', 22), (3, 'three', 33), (4, 'four', 44);

--replace_result  #P# #p#  #SP# #sp#
SELECT s.space_type 'Type', s.name 'Space Name', d.path 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.innodb_sys_datafiles d
	WHERE s.name like '%ibport%' AND s.space = d.space ORDER BY s.space;

--replace_result  #P# #p#  #SP# #sp#
SELECT s.space_type 'Type', s.name 'Space Name', f.file_name 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.files f
	WHERE s.name like '%ibport%' AND s.space = f.file_id ORDER BY s.space;

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.frm
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/test/ ibport*.frm

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.isl
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/test/ ibport*.isl

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.ibd
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/test/ ibport*.ibd

--echo # Directory listing of MYSQLD_DATADIR/ ibport*.isl
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/ ibport*.isl

--echo # Directory listing of MYSQLD_DATADIR/ ibport*.ibd
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/ ibport*.ibd

--echo # Directory listing of ../spaces/ ibport*
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/../spaces/ ibport*

--echo # Add some uncommitted records to these tablespaces before clean shutdown
INSERT INTO ibport_t1 VALUES (5, 'Five', 55);
INSERT INTO ibport_t5 VALUES (5, 'Five', 55);
INSERT INTO ibport_t6 VALUES (5, 'Five', 55);
BEGIN;
UPDATE ibport_t1 SET a = 99, b = 'Uncommitted' WHERE a < 3;
UPDATE ibport_t5 SET a = 99, b = 'Uncommitted' WHERE a < 3;
UPDATE ibport_t6 SET a = 99, b = 'Uncommitted' WHERE a < 3;
DELETE FROM ibport_t1 WHERE a = 3;
DELETE FROM ibport_t5 WHERE a = 3;
DELETE FROM ibport_t6 WHERE a = 3;

--echo #
--echo # Shutdown the server and replace the relative paths in the ISL files with
--echo # full paths to these locations.  This makes the SYS_DATAFILES.PATH and the
--echo # ISL path look different but point to the same place.  InnoDB should
--echo # recognize that they point to the same file and update SYS_DATAFILES.PATH.
--echo #
--source include/shutdown_mysqld.inc

--echo # Put the full path to the *.ibd files into *.isl files.
--exec echo $MYSQLD_DATADIR/ibport_s1_gen.ibd                       > $MYSQLD_DATADIR/ibport_s1_gen.isl
--exec echo $MYSQLD_DATADIR\\..spaces\\ibport_s2_gen.ibd            > $MYSQLD_DATADIR/ibport_s2_gen.isl
--exec echo $MYSQLD_DATADIR/test\\ibport_t1.ibd                     > $MYSQLD_DATADIR/test/ibport_t1.isl

--echo # Restart the DB server.
--echo # Show that the tables are open and the full paths are in SYS_DATAFILES.
--source include/start_mysqld.inc

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.frm
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/test/ ibport*.frm

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.isl
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/test/ ibport*.isl

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.ibd
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/test/ ibport*.ibd

--echo # Directory listing of MYSQLD_DATADIR/ ibport*.isl
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/ ibport*.isl

--echo # Directory listing of MYSQLD_DATADIR/ ibport*.ibd
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/ ibport*.ibd

--echo # Directory listing of ../spaces/ ibport*
--replace_result  #P# #p#  #SP# #sp#
--list_files $MYSQLD_DATADIR/../spaces/ ibport*

SELECT * FROM ibport_t1 ORDER BY a;
SELECT * FROM ibport_t5 ORDER BY a;
SELECT * FROM ibport_t6 ORDER BY a;

--replace_result  #P# #p#  #SP# #sp#  $MYSQLD_DATADIR MYSQLD_DATADIR
SELECT s.space_type 'Type', s.name 'Space Name', d.path 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.innodb_sys_datafiles d
	WHERE s.name like '%ibport%' AND s.space = d.space ORDER BY s.space;

--replace_result  #P# #p#  #SP# #sp#  $MYSQLD_DATADIR MYSQLD_DATADIR
SELECT s.space_type 'Type', s.name 'Space Name', f.file_name 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.files f
	WHERE s.name like '%ibport%' AND s.space = f.file_id ORDER BY s.space;

SHOW CREATE TABLE ibport_t1;
SHOW CREATE TABLE ibport_t5;
SHOW CREATE TABLE ibport_t6;

--echo # Add some uncommitted records to these tablespaces before clean shutdown
INSERT INTO ibport_t1 VALUES (6, 'Six', 66);
INSERT INTO ibport_t5 VALUES (6, 'Six', 66);
INSERT INTO ibport_t6 VALUES (6, 'Six', 66);
BEGIN;
UPDATE ibport_t1 SET a = 99, b = 'Uncommitted' WHERE a < 3;
UPDATE ibport_t5 SET a = 99, b = 'Uncommitted' WHERE a < 3;
UPDATE ibport_t6 SET a = 99, b = 'Uncommitted' WHERE a < 3;
DELETE FROM ibport_t1 WHERE a = 3;
DELETE FROM ibport_t5 WHERE a = 3;
DELETE FROM ibport_t6 WHERE a = 3;

--echo # Stop server
--source include/shutdown_mysqld.inc

--echo #
--echo # Move all the datafiles to a new location and update the isl files.
--echo #

--move_file $MYSQLD_DATADIR/test/ibport_t1.ibd                         $MYSQL_TMP_DIR/portability/tables/ibport_t1.ibd
--move_file $MYSQLD_DATADIR/ibport_s1_gen.ibd                          $MYSQL_TMP_DIR/portability/spaces/ibport_s1_gen.ibd
--move_file $MYSQLD_DATADIR/../spaces/ibport_s2_gen.ibd                $MYSQL_TMP_DIR/portability/spaces/ibport_s2_gen.ibd

--echo # Replace the *.isl files with the full path to the *.ibd files
--exec echo $MYSQL_TMP_DIR/portability/tables\\ibport_t1.ibd            > $MYSQLD_DATADIR/test/ibport_t1.isl
--exec echo $MYSQL_TMP_DIR/portability\\spaces/ibport_s1_gen.ibd        > $MYSQLD_DATADIR/ibport_s1_gen.isl
--exec echo $MYSQL_TMP_DIR\\portability/spaces\\ibport_s2_gen.ibd       > $MYSQLD_DATADIR/ibport_s2_gen.isl

--echo # Directory listing of MYSQLD_DATADIR/ ibport*
--list_files $MYSQLD_DATADIR/ ibport*
--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.frm
--list_files $MYSQLD_DATADIR/test/ ibport*.frm
--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.isl
--list_files $MYSQLD_DATADIR/test/ ibport*.isl
--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.ibd
--list_files $MYSQLD_DATADIR/test/ ibport*.ibd
--echo # Directory listing of MYSQL_TMP_DIR/portability/tables/ ibport*
--list_files $MYSQL_TMP_DIR/portability/tables/ ibport*
--echo # Directory listing of MYSQL_TMP_DIR/portability/spaces/ ibport*
--list_files $MYSQL_TMP_DIR/portability/spaces/ ibport*

--echo # Start the DB server
--source include/start_mysqld.inc

SELECT * FROM ibport_t1 ORDER BY a;
SELECT * FROM ibport_t5 ORDER BY a;
SELECT * FROM ibport_t6 ORDER BY a;

--replace_result  $MYSQL_TMP_DIR MYSQL_TMP_DIR
SELECT s.space_type 'Type', s.name 'Space Name', d.path 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.innodb_sys_datafiles d
	WHERE s.name like '%ibport%' AND s.space = d.space ORDER BY s.space;

--replace_result  $MYSQL_TMP_DIR MYSQL_TMP_DIR
SELECT s.space_type 'Type', s.name 'Space Name', f.file_name 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.files f
	WHERE s.name like '%ibport%' AND s.space = f.file_id ORDER BY s.space;

--replace_result  $MYSQL_TMP_DIR MYSQL_TMP_DIR
SHOW CREATE TABLE ibport_t1;
SHOW CREATE TABLE ibport_t5;
SHOW CREATE TABLE ibport_t6;

--echo # Add some uncommitted records to these tablespaces before clean shutdown
INSERT INTO ibport_t1 VALUES (7, 'Seven', 77);
INSERT INTO ibport_t5 VALUES (7, 'Seven', 77);
INSERT INTO ibport_t6 VALUES (7, 'Seven', 77);
BEGIN;
UPDATE ibport_t1 SET a = 99, b = 'Uncommitted' WHERE a < 3;
UPDATE ibport_t5 SET a = 99, b = 'Uncommitted' WHERE a < 3;
UPDATE ibport_t6 SET a = 99, b = 'Uncommitted' WHERE a < 3;
DELETE FROM ibport_t1 WHERE a = 3;
DELETE FROM ibport_t5 WHERE a = 3;
DELETE FROM ibport_t6 WHERE a = 3;

--echo #
--echo # Shutdown the server again and move each of the tablespaces to
--echo # a common location and update the ISL files accordingly.
--echo #
--source include/shutdown_mysqld.inc

--move_file $MYSQL_TMP_DIR/portability/tables/ibport_t1.ibd                $MYSQL_TMP_DIR/portability/altogether/ibport_t1.ibd
--move_file $MYSQL_TMP_DIR/portability/spaces/ibport_s1_gen.ibd            $MYSQL_TMP_DIR/portability/altogether/ibport_s1_gen.ibd
--move_file $MYSQL_TMP_DIR/portability/spaces/ibport_s2_gen.ibd            $MYSQL_TMP_DIR/portability/altogether/ibport_s2_gen.ibd

--exec echo $MYSQL_TMP_DIR\\portability/altogether/ibport_t1.ibd            > $MYSQLD_DATADIR/test/ibport_t1.isl
--exec echo $MYSQL_TMP_DIR\\portability/altogether\\ibport_s1_gen.ibd        > $MYSQLD_DATADIR/ibport_s1_gen.isl
--exec echo $MYSQL_TMP_DIR/portability/altogether\\ibport_s2_gen.ibd        > $MYSQLD_DATADIR/ibport_s2_gen.isl

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.frm
--list_files $MYSQLD_DATADIR/test/ ibport*.frm
--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.isl
--list_files $MYSQLD_DATADIR/test/ ibport*.isl
--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.ibd
--list_files $MYSQLD_DATADIR/test/ ibport*.ibd
--echo # Directory listing of MYSQL_TMP_DIR/portability/altogether/
--list_files $MYSQL_TMP_DIR/portability/altogether/

--echo # Start the DB server
--source include/start_mysqld.inc

--replace_result  $MYSQL_TMP_DIR MYSQL_TMP_DIR
SELECT s.space_type 'Type', s.name 'Space Name', d.path 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.innodb_sys_datafiles d
	WHERE s.name like '%ibport%' AND s.space = d.space ORDER BY s.space;

--replace_result  $MYSQL_TMP_DIR MYSQL_TMP_DIR
SELECT s.space_type 'Type', s.name 'Space Name', f.file_name 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.files f
	WHERE s.name like '%ibport%' AND s.space = f.file_id ORDER BY s.space;

--replace_result  $MYSQL_TMP_DIR MYSQL_TMP_DIR
SHOW CREATE TABLE ibport_t1;
SHOW CREATE TABLE ibport_t5;
SHOW CREATE TABLE ibport_t6;

SELECT * FROM ibport_t1 ORDER BY a;
SELECT * FROM ibport_t5 ORDER BY a;
SELECT * FROM ibport_t6 ORDER BY a;

--echo # Add some uncommitted records to these tablespaces before clean shutdown
INSERT INTO ibport_t1 VALUES (8, 'Eight', 88);
INSERT INTO ibport_t5 VALUES (8, 'Eight', 88);
INSERT INTO ibport_t6 VALUES (8, 'Eight', 88);
BEGIN;
UPDATE ibport_t1 SET a = 99, b = 'Uncommitted' WHERE a < 3;
UPDATE ibport_t5 SET a = 99, b = 'Uncommitted' WHERE a < 3;
UPDATE ibport_t6 SET a = 99, b = 'Uncommitted' WHERE a < 3;
DELETE FROM ibport_t1 WHERE a = 3;
DELETE FROM ibport_t5 WHERE a = 3;
DELETE FROM ibport_t6 WHERE a = 3;

--echo #
--echo # Shutdown the server again and move each of the tablespaces to their
--echo # default locations.  Leave the ISL files and the dictionary pointing to
--echo # the MYSQL_TMP_DIR/portability/altogether location.  The dictionary
--echo # will be adjusted when the files are found in the default locations.
--echo # The ISL files will be ignored.
--echo #
--source include/shutdown_mysqld.inc

--move_file $MYSQL_TMP_DIR/portability/altogether/ibport_t1.ibd             $MYSQLD_DATADIR/test/ibport_t1.ibd
--move_file $MYSQL_TMP_DIR/portability/altogether/ibport_s1_gen.ibd         $MYSQLD_DATADIR/ibport_s1_gen.ibd
--move_file $MYSQL_TMP_DIR/portability/altogether/ibport_s2_gen.ibd         $MYSQLD_DATADIR/ibport_s2_gen.ibd

--echo # Directory listing of MYSQLD_DATADIR/ ibport*.ibd
--list_files $MYSQLD_DATADIR/ ibport*.ibd

--echo # Directory listing of MYSQLD_DATADIR/ ibport*.isl
--list_files $MYSQLD_DATADIR/ ibport*.isl

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.frm
--list_files $MYSQLD_DATADIR/test/ ibport*.frm

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.isl
--list_files $MYSQLD_DATADIR/test/ ibport*.isl

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.ibd
--list_files $MYSQLD_DATADIR/test/ ibport*.ibd

--echo # Directory listing of MYSQL_TMP_DIR/portability/altogether/
--list_files $MYSQL_TMP_DIR/portability/altogether/

--echo # Start the DB server
--source include/start_mysqld.inc

SHOW CREATE TABLE ibport_t1;
SHOW CREATE TABLE ibport_t5;
SHOW CREATE TABLE ibport_t6;

SELECT s.space_type 'Type', s.name 'Space Name', d.path 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.innodb_sys_datafiles d
	WHERE s.name like '%ibport%' AND s.space = d.space ORDER BY s.space;

SELECT s.space_type 'Type', s.name 'Space Name', f.file_name 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.files f
	WHERE s.name like '%ibport%' AND s.space = f.file_id ORDER BY s.space;

SELECT * FROM ibport_t1 ORDER BY a;
SELECT * FROM ibport_t5 ORDER BY a;
SELECT * FROM ibport_t6 ORDER BY a;

--echo # Add some uncommitted records to these tablespaces before clean shutdown
INSERT INTO ibport_t1 VALUES (9, 'Nine', 99);
INSERT INTO ibport_t5 VALUES (9, 'Nine', 99);
INSERT INTO ibport_t6 VALUES (9, 'Nine', 99);
BEGIN;
UPDATE ibport_t1 SET a = 99, b = 'Uncommitted' WHERE a < 3;
UPDATE ibport_t5 SET a = 99, b = 'Uncommitted' WHERE a < 3;
UPDATE ibport_t6 SET a = 99, b = 'Uncommitted' WHERE a < 3;
DELETE FROM ibport_t1 WHERE a = 3;
DELETE FROM ibport_t5 WHERE a = 3;
DELETE FROM ibport_t6 WHERE a = 3;

--echo #
--echo # Shutdown the server again and move each of the tablespaces to the
--echo # original locations.
--echo # Make the ISL files point to these locations. using relative pathnames.
--echo # The dictionary is pointing to the default locations and will be adjusted.
--echo #
--source include/shutdown_mysqld.inc

--move_file $MYSQLD_DATADIR/ibport_s2_gen.ibd             $MYSQLD_DATADIR/../spaces/ibport_s2_gen.ibd
--remove_file $MYSQLD_DATADIR/test/ibport_t1.isl

--exec echo ..\\spaces/ibport_s2_gen.ibd                   > $MYSQLD_DATADIR/ibport_s2_gen.isl

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.frm
--list_files $MYSQLD_DATADIR/test/ ibport*.frm

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.isl
--list_files $MYSQLD_DATADIR/test/ ibport*.isl

--echo # Directory listing of MYSQLD_DATADIR/test/ ibport*.ibd
--list_files $MYSQLD_DATADIR/test/ ibport*.ibd

--echo # Start the DB server
--source include/start_mysqld.inc

SELECT * FROM ibport_t1 ORDER BY a;
SELECT * FROM ibport_t5 ORDER BY a;
SELECT * FROM ibport_t6 ORDER BY a;

SHOW CREATE TABLE ibport_t1;
SHOW CREATE TABLE ibport_t5;
SHOW CREATE TABLE ibport_t6;

SELECT s.space_type 'Type', s.name 'Space Name', d.path 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.innodb_sys_datafiles d
	WHERE s.name like '%ibport%' AND s.space = d.space ORDER BY s.space;

SELECT s.space_type 'Type', s.name 'Space Name', f.file_name 'Path'
	FROM information_schema.innodb_sys_tablespaces s, information_schema.files f
	WHERE s.name like '%ibport%' AND s.space = f.file_id ORDER BY s.space;

--echo #
--echo # Cleanup
--echo #

DROP TABLE ibport_t1;
DROP TABLE ibport_t5;
DROP TABLE ibport_t6;
DROP TABLESPACE ibport_s1;
DROP TABLESPACE ibport_s2;
--rmdir $MYSQLD_DATADIR/../spaces
--rmdir $MYSQLD_DATADIR/../remote
--rmdir $MYSQL_TMP_DIR/portability/altogether
--rmdir $MYSQL_TMP_DIR/portability/tables
--rmdir $MYSQL_TMP_DIR/portability/spaces
--rmdir $MYSQL_TMP_DIR/portability

--disable_query_log
call mtr.add_suppression("\\[ERROR\\] \\[[^]]*\\] InnoDB: Operating system error number [0-9]* in a file operation");
call mtr.add_suppression("\\[ERROR\\] \\[[^]]*\\] InnoDB: Cannot open datafile for read-only:");
call mtr.add_suppression("\\[ERROR\\] \\[[^]]*\\] InnoDB: A link file was found named '.*isl' but the linked tablespace '.*ibd' could not be opened read-only");
call mtr.add_suppression("\\[ERROR\\] \\[[^]]*\\] InnoDB: The error means the system cannot find the path specified");
call mtr.add_suppression("\\[ERROR\\] \\[[^]]*\\] InnoDB: If you are installing InnoDB, remember that you must create directories yourself, InnoDB does not create them");
--enable_query_log