File: tablespace_portability_windows.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 (184 lines) | stat: -rw-r--r-- 8,467 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
#
# Windows version of Tablespace Portability test.
#
# This testcase is related to WL#5980 & WL#6205.
# It tests whether datafiles can be copied from one location
# to another, and still be opened. In order to make this testcase run
# on any OS, we create the tablespaces here.
#
SET DEFAULT_STORAGE_ENGINE=InnoDB;
#
# Try a series of invalid relative ADD DATAFILE entries.
# General tablespace files can be in the datadir but they cannot be under the datadir.
#
CREATE TABLESPACE bad ADD DATAFILE '';
ERROR HY000: The ADD DATAFILE filepath does not have a proper filename.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath does not have a proper filename.
Error	3121	The ADD DATAFILE filepath must end with '.ibd'.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name ''.
CREATE TABLESPACE bad ADD DATAFILE '.ibd';
ERROR HY000: The ADD DATAFILE filepath does not have a proper filename.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath does not have a proper filename.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name '.ibd'.
CREATE TABLESPACE bad ADD DATAFILE './ibd';
ERROR HY000: The ADD DATAFILE filepath does not have a proper filename.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath does not have a proper filename.
Error	3121	The ADD DATAFILE filepath must end with '.ibd'.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name './ibd'.
CREATE TABLESPACE bad ADD DATAFILE './.ibd';
ERROR HY000: The ADD DATAFILE filepath does not have a proper filename.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath does not have a proper filename.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name './.ibd'.
CREATE TABLESPACE bad ADD DATAFILE '../spaces/';
ERROR HY000: The ADD DATAFILE filepath does not have a proper filename.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath does not have a proper filename.
Error	3121	The ADD DATAFILE filepath must end with '.ibd'.
Error	3121	The directory does not exist or is incorrect.
Error	3121	The DATAFILE location must be in a known directory.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name '../spaces/'.
CREATE TABLESPACE bad ADD DATAFILE 'test/bad.ibd';
ERROR HY000: The DATAFILE location cannot be under the datadir.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The DATAFILE location cannot be under the datadir.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name 'test/bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE './test/bad.ibd';
ERROR HY000: The DATAFILE location cannot be under the datadir.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The DATAFILE location cannot be under the datadir.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name './test/bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE './test//bad.ibd';
ERROR HY000: The DATAFILE location cannot be under the datadir.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The DATAFILE location cannot be under the datadir.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name './test//bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE '../data/test/bad.ibd';
ERROR HY000: The DATAFILE location cannot be under the datadir.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The DATAFILE location cannot be under the datadir.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name '../data/test/bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE '../data/../data/test/bad.ibd';
ERROR HY000: The ADD DATAFILE filepath cannot contain circular directory references.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath cannot contain circular directory references.
Error	3121	The DATAFILE location cannot be under the datadir.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name '../data/../data/test/bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE '../data/../data/bad.ibd';
ERROR HY000: The ADD DATAFILE filepath cannot contain circular directory references.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath cannot contain circular directory references.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name '../data/../data/bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE '../does_not_exist/bad.ibd';
ERROR HY000: The directory does not exist or is incorrect.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The directory does not exist or is incorrect.
Error	3121	The DATAFILE location must be in a known directory.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name '../does_not_exist/bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE 'test/../bad.ibd';
ERROR HY000: The ADD DATAFILE filepath cannot contain circular directory references.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath cannot contain circular directory references.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name 'test/../bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE './test/../bad.ibd';
ERROR HY000: The ADD DATAFILE filepath cannot contain circular directory references.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath cannot contain circular directory references.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name './test/../bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE 'test//..//bad.ibd';
ERROR HY000: The ADD DATAFILE filepath cannot contain circular directory references.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath cannot contain circular directory references.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name 'test//..//bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE '..///data//test///..//bad.ibd';
ERROR HY000: The ADD DATAFILE filepath cannot contain circular directory references.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath cannot contain circular directory references.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name '..///data//test///..//bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE './/test//..//bad.ibd';
ERROR HY000: The ADD DATAFILE filepath cannot contain circular directory references.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath cannot contain circular directory references.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name './/test//..//bad.ibd'.
CREATE TABLESPACE bad ADD DATAFILE '..//////data////test//////..////bad.ibd';
ERROR HY000: The ADD DATAFILE filepath cannot contain circular directory references.
SHOW WARNINGS;
Level	Code	Message
Error	3121	The ADD DATAFILE filepath cannot contain circular directory references.
Error	1528	Failed to create TABLESPACE bad
Error	3121	Incorrect File Name '..//////data////test//////..////bad.ibd'.
#
# Try a series of valid relative ADD DATAFILE entries.
# General tablespace files can be in the datadir but they cannot be under the datadir.
#
CREATE TABLESPACE ibport_s01 ADD DATAFILE 'ibport_s01.ibd';
CREATE TABLESPACE ibport_s02 ADD DATAFILE './ibport_s02.ibd';
CREATE TABLESPACE ibport_s03 ADD DATAFILE '../data/ibport_s03.ibd';
CREATE TABLESPACE ibport_s04 ADD DATAFILE './/ibport_s04.ibd';
CREATE TABLESPACE ibport_s05 ADD DATAFILE '..//data//ibport_s05.ibd';
# Directory listing of MYSQLD_DATADIR/ ibport*
ibport_s01.ibd
ibport_s02.ibd
ibport_s03.ibd
ibport_s04.ibd
ibport_s05.ibd
SELECT s.space_type 'Type', s.name 'Space Name', d.path 'Path'
	FROM information_schema.innodb_tablespaces s, information_schema.innodb_datafiles d
WHERE s.name like '%ibport%' AND s.space = d.space ORDER BY s.space;
Type	Space Name	Path
General	ibport_s01	ibport_s01.ibd
General	ibport_s02	./ibport_s02.ibd
General	ibport_s03	../data/ibport_s03.ibd
General	ibport_s04	.//ibport_s04.ibd
General	ibport_s05	..//data//ibport_s05.ibd
SELECT s.space_type 'Type', s.name 'Space Name', f.file_name 'Path'
	FROM information_schema.innodb_tablespaces s, information_schema.files f
WHERE s.name like '%ibport%' AND s.space = f.file_id ORDER BY s.space;
Type	Space Name	Path
General	ibport_s01	./ibport_s01.ibd
General	ibport_s02	./ibport_s02.ibd
General	ibport_s03	../data/ibport_s03.ibd
General	ibport_s04	.//ibport_s04.ibd
General	ibport_s05	..//data//ibport_s05.ibd
DROP TABLESPACE ibport_s01;
DROP TABLESPACE ibport_s02;
DROP TABLESPACE ibport_s03;
DROP TABLESPACE ibport_s04;
DROP TABLESPACE ibport_s05;