Debian Codegraph @

mysql-test/suite/funcs_1/r/is_tables.result

raw
1 SHOW TABLES FROM information_schema LIKE 'TABLES';
2 Tables_in_information_schema (TABLES)
3 TABLES
4 #######################################################################
5 # Testcase 3.2.1.1: INFORMATION_SCHEMA tables can be queried via SELECT
6 #######################################################################
7 DROP VIEW IF EXISTS test.v1;
8 DROP PROCEDURE IF EXISTS test.p1;
9 DROP FUNCTION IF EXISTS test.f1;
10 CREATE VIEW test.v1 AS SELECT * FROM information_schema.TABLES;
11 CREATE PROCEDURE test.p1() SELECT * FROM information_schema.TABLES;
12 CREATE FUNCTION test.f1() returns BIGINT
13 BEGIN
14 DECLARE counter BIGINT DEFAULT NULL;
15 SELECT COUNT(*) INTO counter FROM information_schema.TABLES;
16 RETURN counter;
17 END//
18 # Attention: The printing of the next result sets is disabled.
19 SELECT * FROM information_schema.TABLES;
20 SELECT * FROM test.v1;
21 CALL test.p1;
22 SELECT test.f1();
23 DROP VIEW test.v1;
24 DROP PROCEDURE test.p1;
25 DROP FUNCTION test.f1;
26 #########################################################################
27 # Testcase 3.2.12.1: INFORMATION_SCHEMA.TABLES layout
28 #########################################################################
29 DESCRIBE information_schema.TABLES;
30 Field Type Null Key Default Extra
31 TABLE_CATALOG varchar(512) NO NULL
32 TABLE_SCHEMA varchar(64) NO NULL
33 TABLE_NAME varchar(64) NO NULL
34 TABLE_TYPE varchar(64) NO NULL
35 ENGINE varchar(64) YES NULL
36 VERSION bigint(21) unsigned YES NULL
37 ROW_FORMAT varchar(10) YES NULL
38 TABLE_ROWS bigint(21) unsigned YES NULL
39 AVG_ROW_LENGTH bigint(21) unsigned YES NULL
40 DATA_LENGTH bigint(21) unsigned YES NULL
41 MAX_DATA_LENGTH bigint(21) unsigned YES NULL
42 INDEX_LENGTH bigint(21) unsigned YES NULL
43 DATA_FREE bigint(21) unsigned YES NULL
44 AUTO_INCREMENT bigint(21) unsigned YES NULL
45 CREATE_TIME datetime YES NULL
46 UPDATE_TIME datetime YES NULL
47 CHECK_TIME datetime YES NULL
48 TABLE_COLLATION varchar(64) YES NULL
49 CHECKSUM bigint(21) unsigned YES NULL
50 CREATE_OPTIONS varchar(2048) YES NULL
51 TABLE_COMMENT varchar(2048) NO NULL
52 MAX_INDEX_LENGTH bigint(21) unsigned YES NULL
53 TEMPORARY varchar(1) YES NULL
54 SHOW CREATE TABLE information_schema.TABLES;
55 Table Create Table
56 TABLES CREATE TEMPORARY TABLE `TABLES` (
57 `TABLE_CATALOG` varchar(512) NOT NULL,
58 `TABLE_SCHEMA` varchar(64) NOT NULL,
59 `TABLE_NAME` varchar(64) NOT NULL,
60 `TABLE_TYPE` varchar(64) NOT NULL,
61 `ENGINE` varchar(64),
62 `VERSION` bigint(21) unsigned,
63 `ROW_FORMAT` varchar(10),
64 `TABLE_ROWS` bigint(21) unsigned,
65 `AVG_ROW_LENGTH` bigint(21) unsigned,
66 `DATA_LENGTH` bigint(21) unsigned,
67 `MAX_DATA_LENGTH` bigint(21) unsigned,
68 `INDEX_LENGTH` bigint(21) unsigned,
69 `DATA_FREE` bigint(21) unsigned,
70 `AUTO_INCREMENT` bigint(21) unsigned,
71 `CREATE_TIME` datetime,
72 `UPDATE_TIME` datetime,
73 `CHECK_TIME` datetime,
74 `TABLE_COLLATION` varchar(64),
75 `CHECKSUM` bigint(21) unsigned,
76 `CREATE_OPTIONS` varchar(2048),
77 `TABLE_COMMENT` varchar(2048) NOT NULL,
78 `MAX_INDEX_LENGTH` bigint(21) unsigned,
79 `TEMPORARY` varchar(1)
80 ) ENGINE=MEMORY DEFAULT CHARSET=utf8mb3 COLLATE=utf8mb3_general_ci
81 SHOW COLUMNS FROM information_schema.TABLES;
82 Field Type Null Key Default Extra
83 TABLE_CATALOG varchar(512) NO NULL
84 TABLE_SCHEMA varchar(64) NO NULL
85 TABLE_NAME varchar(64) NO NULL
86 TABLE_TYPE varchar(64) NO NULL
87 ENGINE varchar(64) YES NULL
88 VERSION bigint(21) unsigned YES NULL
89 ROW_FORMAT varchar(10) YES NULL
90 TABLE_ROWS bigint(21) unsigned YES NULL
91 AVG_ROW_LENGTH bigint(21) unsigned YES NULL
92 DATA_LENGTH bigint(21) unsigned YES NULL
93 MAX_DATA_LENGTH bigint(21) unsigned YES NULL
94 INDEX_LENGTH bigint(21) unsigned YES NULL
95 DATA_FREE bigint(21) unsigned YES NULL
96 AUTO_INCREMENT bigint(21) unsigned YES NULL
97 CREATE_TIME datetime YES NULL
98 UPDATE_TIME datetime YES NULL
99 CHECK_TIME datetime YES NULL
100 TABLE_COLLATION varchar(64) YES NULL
101 CHECKSUM bigint(21) unsigned YES NULL
102 CREATE_OPTIONS varchar(2048) YES NULL
103 TABLE_COMMENT varchar(2048) NO NULL
104 MAX_INDEX_LENGTH bigint(21) unsigned YES NULL
105 TEMPORARY varchar(1) YES NULL
106 SELECT table_catalog, table_schema, table_name
107 FROM information_schema.tables WHERE table_catalog IS NULL OR table_catalog <> 'def';
108 table_catalog table_schema table_name
109 ################################################################################
110 # Testcase 3.2.12.2 + 3.2.12.3: INFORMATION_SCHEMA.TABLES accessible information
111 ################################################################################
112 DROP DATABASE IF EXISTS db_datadict;
113 CREATE DATABASE db_datadict;
114 DROP USER 'testuser1'@'localhost';
115 CREATE USER 'testuser1'@'localhost';
116 GRANT CREATE, CREATE VIEW, INSERT, SELECT ON db_datadict.*
117 TO 'testuser1'@'localhost' WITH GRANT OPTION;
118 DROP USER 'testuser2'@'localhost';
119 CREATE USER 'testuser2'@'localhost';
120 DROP USER 'testuser3'@'localhost';
121 CREATE USER 'testuser3'@'localhost';
122 CREATE TABLE db_datadict.tb1 (f1 INT, f2 INT, f3 INT)
123 ENGINE = <engine_type>;
124 GRANT SELECT ON db_datadict.tb1 TO 'testuser1'@'localhost';
125 GRANT ALL ON db_datadict.tb1 TO 'testuser2'@'localhost' WITH GRANT OPTION;
126 connect testuser1, localhost, testuser1, , db_datadict;
127 CREATE TABLE tb2 (f1 DECIMAL)
128 ENGINE = <engine_type>;
129 CREATE TABLE tb3 (f1 VARCHAR(200))
130 ENGINE = <engine_type>;
131 GRANT SELECT ON db_datadict.tb3 to 'testuser3'@'localhost';
132 GRANT INSERT ON db_datadict.tb3 to 'testuser2'@'localhost';
133 CREATE VIEW v3 AS SELECT * FROM tb3;
134 GRANT SELECT ON db_datadict.v3 to 'testuser3'@'localhost';
135 SELECT * FROM information_schema.tables
136 WHERE table_schema = 'db_datadict' ORDER BY table_name;
137 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT MAX_INDEX_LENGTH TEMPORARY
138 def db_datadict tb1 BASE TABLE #ENG# 10 #RF# 0 #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# utf8mb4_uca1400_ai_ci #CS# 0 N
139 def db_datadict tb2 BASE TABLE #ENG# 10 #RF# 0 #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# utf8mb4_uca1400_ai_ci #CS# 0 N
140 def db_datadict tb3 BASE TABLE #ENG# 10 #RF# 0 #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# utf8mb4_uca1400_ai_ci #CS# 0 N
141 def db_datadict v3 VIEW #ENG# NULL #RF# NULL #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# NULL #CS# NULL VIEW NULL NULL
142 SHOW TABLES FROM db_datadict;
143 Tables_in_db_datadict
144 tb1
145 tb2
146 tb3
147 v3
148 connect testuser2, localhost, testuser2, , db_datadict;
149 SELECT * FROM information_schema.tables
150 WHERE table_schema = 'db_datadict' ORDER BY table_name;
151 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT MAX_INDEX_LENGTH TEMPORARY
152 def db_datadict tb1 BASE TABLE #ENG# 10 #RF# 0 #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# utf8mb4_uca1400_ai_ci #CS# 0 N
153 def db_datadict tb3 BASE TABLE #ENG# 10 #RF# 0 #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# utf8mb4_uca1400_ai_ci #CS# 0 N
154 SHOW TABLES FROM db_datadict;
155 Tables_in_db_datadict
156 tb1
157 tb3
158 connect testuser3, localhost, testuser3, , db_datadict;
159 SELECT * FROM information_schema.tables
160 WHERE table_schema = 'db_datadict' ORDER BY table_name;
161 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT MAX_INDEX_LENGTH TEMPORARY
162 def db_datadict tb3 BASE TABLE #ENG# 10 #RF# 0 #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# utf8mb4_uca1400_ai_ci #CS# 0 N
163 def db_datadict v3 VIEW #ENG# NULL #RF# NULL #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# NULL #CS# NULL VIEW NULL NULL
164 SHOW TABLES FROM db_datadict;
165 Tables_in_db_datadict
166 tb3
167 v3
168 connection default;
169 SELECT * FROM information_schema.tables
170 WHERE table_schema = 'db_datadict' ORDER BY table_name;
171 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME TABLE_TYPE ENGINE VERSION ROW_FORMAT TABLE_ROWS AVG_ROW_LENGTH DATA_LENGTH MAX_DATA_LENGTH INDEX_LENGTH DATA_FREE AUTO_INCREMENT CREATE_TIME UPDATE_TIME CHECK_TIME TABLE_COLLATION CHECKSUM CREATE_OPTIONS TABLE_COMMENT MAX_INDEX_LENGTH TEMPORARY
172 def db_datadict tb1 BASE TABLE #ENG# 10 #RF# 0 #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# utf8mb4_uca1400_ai_ci #CS# 0 N
173 def db_datadict tb2 BASE TABLE #ENG# 10 #RF# 0 #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# utf8mb4_uca1400_ai_ci #CS# 0 N
174 def db_datadict tb3 BASE TABLE #ENG# 10 #RF# 0 #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# utf8mb4_uca1400_ai_ci #CS# 0 N
175 def db_datadict v3 VIEW #ENG# NULL #RF# NULL #ARL# #DL# #MDL# #IL# #DF# NULL #CRT #UT# #CT# NULL #CS# NULL VIEW NULL NULL
176 SHOW TABLES FROM db_datadict;
177 Tables_in_db_datadict
178 tb1
179 tb2
180 tb3
181 v3
182 disconnect testuser1;
183 disconnect testuser2;
184 disconnect testuser3;
185 DROP USER 'testuser1'@'localhost';
186 DROP USER 'testuser2'@'localhost';
187 DROP USER 'testuser3'@'localhost';
188 DROP DATABASE db_datadict;
189 #########################################################################
190 # 3.2.1.13+3.2.1.14+3.2.1.15: INFORMATION_SCHEMA.TABLES modifications
191 #########################################################################
192 DROP TABLE IF EXISTS test.t1_my_table;
193 DROP DATABASE IF EXISTS db_datadict;
194 CREATE DATABASE db_datadict;
195 SELECT table_name FROM information_schema.tables
196 WHERE table_name LIKE 't1_my_table%';
197 table_name
198 CREATE TABLE test.t1_my_table (f1 BIGINT)
199 DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci
200 COMMENT = 'Initial Comment' ENGINE = <engine_type>;
201 SELECT * FROM information_schema.tables
202 WHERE table_name = 't1_my_table';
203 TABLE_CATALOG def
204 TABLE_SCHEMA test
205 TABLE_NAME t1_my_table
206 TABLE_TYPE BASE TABLE
207 ENGINE #ENG#
208 VERSION 10
209 ROW_FORMAT #RF#
210 TABLE_ROWS 0
211 AVG_ROW_LENGTH #ARL#
212 DATA_LENGTH #DL#
213 MAX_DATA_LENGTH #MDL#
214 INDEX_LENGTH #IL#
215 DATA_FREE #DF#
216 AUTO_INCREMENT NULL
217 CREATE_TIME #CRT
218 UPDATE_TIME #UT#
219 CHECK_TIME #CT#
220 TABLE_COLLATION latin1_swedish_ci
221 CHECKSUM #CS#
222 CREATE_OPTIONS
223 TABLE_COMMENT Initial Comment
224 MAX_INDEX_LENGTH 0
225 TEMPORARY N
226 SELECT table_name FROM information_schema.tables
227 WHERE table_name LIKE 't1_my_table%';
228 table_name
229 t1_my_table
230 RENAME TABLE test.t1_my_table TO test.t1_my_tablex;
231 SELECT table_name FROM information_schema.tables
232 WHERE table_name LIKE 't1_my_table%';
233 table_name
234 t1_my_tablex
235 SELECT table_schema,table_name FROM information_schema.tables
236 WHERE table_name = 't1_my_tablex';
237 table_schema table_name
238 test t1_my_tablex
239 RENAME TABLE test.t1_my_tablex TO db_datadict.t1_my_tablex;
240 SELECT table_schema,table_name FROM information_schema.tables
241 WHERE table_name = 't1_my_tablex';
242 table_schema table_name
243 db_datadict t1_my_tablex
244 SELECT table_name, engine FROM information_schema.tables
245 WHERE table_name = 't1_my_tablex';
246 table_name engine
247 t1_my_tablex <engine_type>
248 ALTER TABLE db_datadict.t1_my_tablex
249 ENGINE = <other_engine_type>;
250 SELECT table_name, engine FROM information_schema.tables
251 WHERE table_name = 't1_my_tablex';
252 table_name engine
253 t1_my_tablex <other_engine_type>
254 SELECT table_name, table_rows FROM information_schema.tables
255 WHERE table_name = 't1_my_tablex';
256 table_name table_rows
257 t1_my_tablex 0
258 INSERT INTO db_datadict.t1_my_tablex VALUES(1),(2);
259 SELECT table_name, table_rows FROM information_schema.tables
260 WHERE table_name = 't1_my_tablex';
261 table_name table_rows
262 t1_my_tablex 2
263 SELECT table_name, table_collation FROM information_schema.tables
264 WHERE table_name = 't1_my_tablex';
265 table_name table_collation
266 t1_my_tablex latin1_swedish_ci
267 ALTER TABLE db_datadict.t1_my_tablex DEFAULT CHARACTER SET utf8;
268 SELECT table_name, table_collation FROM information_schema.tables
269 WHERE table_name = 't1_my_tablex';
270 table_name table_collation
271 t1_my_tablex utf8mb3_uca1400_ai_ci
272 SELECT table_name, table_collation FROM information_schema.tables
273 WHERE table_name = 't1_my_tablex';
274 table_name table_collation
275 t1_my_tablex utf8mb3_uca1400_ai_ci
276 ALTER TABLE db_datadict.t1_my_tablex
277 DEFAULT CHARACTER SET latin1 COLLATE latin1_german1_ci;
278 SELECT table_name, table_collation FROM information_schema.tables
279 WHERE table_name = 't1_my_tablex';
280 table_name table_collation
281 t1_my_tablex latin1_german1_ci
282 SELECT table_name, TABLE_COMMENT FROM information_schema.tables
283 WHERE table_name = 't1_my_tablex';
284 table_name TABLE_COMMENT
285 t1_my_tablex Initial Comment
286 ALTER TABLE db_datadict.t1_my_tablex COMMENT 'Changed Comment';
287 SELECT table_name, TABLE_COMMENT FROM information_schema.tables
288 WHERE table_name = 't1_my_tablex';
289 table_name TABLE_COMMENT
290 t1_my_tablex Changed Comment
291 SELECT table_name, AUTO_INCREMENT FROM information_schema.tables
292 WHERE table_name = 't1_my_tablex';
293 table_name AUTO_INCREMENT
294 t1_my_tablex NULL
295 ALTER TABLE db_datadict.t1_my_tablex
296 ADD f2 BIGINT AUTO_INCREMENT, ADD PRIMARY KEY (f2);
297 SELECT table_name, AUTO_INCREMENT FROM information_schema.tables
298 WHERE table_name = 't1_my_tablex';
299 table_name AUTO_INCREMENT
300 t1_my_tablex 3
301 SELECT table_name, ROW_FORMAT FROM information_schema.tables
302 WHERE table_name = 't1_my_tablex';
303 table_name ROW_FORMAT
304 t1_my_tablex Fixed
305 ALTER TABLE db_datadict.t1_my_tablex ROW_FORMAT = dynamic;
306 SELECT table_name, ROW_FORMAT FROM information_schema.tables
307 WHERE table_name = 't1_my_tablex';
308 table_name ROW_FORMAT
309 t1_my_tablex Dynamic
310 SELECT table_name, checksum FROM information_schema.tables
311 WHERE table_name = 't1_my_tablex';
312 table_name checksum
313 t1_my_tablex NULL
314 ALTER TABLE db_datadict.t1_my_tablex CHECKSUM = 1;
315 SELECT table_name, checksum IS NOT NULL FROM information_schema.tables
316 WHERE table_name = 't1_my_tablex';
317 table_name checksum IS NOT NULL
318 t1_my_tablex 1
319 SELECT UPDATE_TIME, checksum INTO @UPDATE_TIME, @checksum
320 FROM information_schema.tables
321 WHERE table_name = 't1_my_tablex';
322 INSERT INTO db_datadict.t1_my_tablex SET f1 = 3;
323 FLUSH TABLES;
324 SELECT UPDATE_TIME > @UPDATE_TIME
325 AS "Is current UPDATE_TIME bigger than before last INSERT?"
326 FROM information_schema.tables
327 WHERE table_name = 't1_my_tablex';
328 Is current UPDATE_TIME bigger than before last INSERT?
329 1
330 SELECT checksum <> @checksum
331 AS "Is current CHECKSUM different than before last INSERT?"
332 FROM information_schema.tables
333 WHERE table_name = 't1_my_tablex';
334 Is current CHECKSUM different than before last INSERT?
335 1
336 SELECT CREATE_TIME INTO @CREATE_TIME FROM information_schema.tables
337 WHERE table_name = 't1_my_tablex';
338 SELECT table_name FROM information_schema.tables
339 WHERE table_name LIKE 't1_my_table%';
340 table_name
341 t1_my_tablex
342 DROP TABLE db_datadict.t1_my_tablex;
343 SELECT table_name FROM information_schema.tables
344 WHERE table_name LIKE 't1_my_table%';
345 table_name
346 CREATE TABLE test.t1_my_tablex (f1 BIGINT)
347 ENGINE = <other_engine_type>;
348 SELECT CREATE_TIME > @CREATE_TIME
349 AS "Is current CREATE_TIME bigger than for the old dropped table?"
350 FROM information_schema.tables
351 WHERE table_name = 't1_my_tablex';
352 Is current CREATE_TIME bigger than for the old dropped table?
353 1
354 DROP TABLE test.t1_my_tablex;
355 CREATE VIEW test.t1_my_tablex AS SELECT 1;
356 SELECT * FROM information_schema.tables
357 WHERE table_name = 't1_my_tablex';
358 TABLE_CATALOG def
359 TABLE_SCHEMA test
360 TABLE_NAME t1_my_tablex
361 TABLE_TYPE VIEW
362 ENGINE NULL
363 VERSION NULL
364 ROW_FORMAT NULL
365 TABLE_ROWS NULL
366 AVG_ROW_LENGTH NULL
367 DATA_LENGTH NULL
368 MAX_DATA_LENGTH NULL
369 INDEX_LENGTH NULL
370 DATA_FREE NULL
371 AUTO_INCREMENT NULL
372 CREATE_TIME NULL
373 UPDATE_TIME NULL
374 CHECK_TIME NULL
375 TABLE_COLLATION NULL
376 CHECKSUM NULL
377 CREATE_OPTIONS NULL
378 TABLE_COMMENT VIEW
379 MAX_INDEX_LENGTH NULL
380 TEMPORARY NULL
381 DROP VIEW test.t1_my_tablex;
382 SELECT table_name FROM information_schema.tables
383 WHERE table_name = 't1_my_tablex';
384 table_name
385 CREATE TEMPORARY TABLE test.t1_my_tablex
386 ENGINE = <other_engine_type>
387 AS SELECT 1;
388 SELECT table_name, table_type FROM information_schema.tables
389 WHERE table_name = 't1_my_tablex';
390 table_name t1_my_tablex
391 table_type TEMPORARY
392 DROP TEMPORARY TABLE test.t1_my_tablex;
393 CREATE TABLE db_datadict.t1_my_tablex
394 ENGINE = <engine_type> AS
395 SELECT 1;
396 SELECT table_name FROM information_schema.tables
397 WHERE table_name = 't1_my_tablex';
398 table_name
399 t1_my_tablex
400 DROP DATABASE db_datadict;
401 SELECT table_name FROM information_schema.tables
402 WHERE table_name = 't1_my_tablex';
403 table_name
404 ########################################################################
405 # Testcases 3.2.1.3-3.2.1.5 + 3.2.1.8-3.2.1.12: INSERT/UPDATE/DELETE and
406 # DDL on INFORMATION_SCHEMA tables are not supported
407 ########################################################################
408 DROP DATABASE IF EXISTS db_datadict;
409 CREATE DATABASE db_datadict;
410 CREATE TABLE db_datadict.t1 (f1 BIGINT)
411 ENGINE = <engine_type>;
412 INSERT INTO information_schema.tables
413 SELECT * FROM information_schema.tables;
414 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
415 UPDATE information_schema.tables SET table_schema = 'test'
416 WHERE table_name = 't1';
417 Got one of the listed errors
418 DELETE FROM information_schema.tables WHERE table_name = 't1';
419 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
420 TRUNCATE information_schema.tables;
421 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
422 CREATE INDEX my_idx_on_tables ON information_schema.tables(table_schema);
423 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
424 ALTER TABLE information_schema.tables DROP PRIMARY KEY;
425 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
426 ALTER TABLE information_schema.tables ADD f1 INT;
427 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
428 DROP TABLE information_schema.tables;
429 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
430 ALTER TABLE information_schema.tables RENAME db_datadict.tables;
431 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
432 ALTER TABLE information_schema.tables RENAME information_schema.xtables;
433 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
434 DROP DATABASE db_datadict;