1 SHOW TABLES FROM information_schema LIKE 'STATISTICS';
2 Tables_in_information_schema (STATISTICS)
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.STATISTICS;
11 CREATE PROCEDURE test.p1() SELECT * FROM information_schema.STATISTICS;
12 CREATE FUNCTION test.f1() returns BIGINT
14 DECLARE counter BIGINT DEFAULT NULL;
15 SELECT COUNT(*) INTO counter FROM information_schema.STATISTICS;
18 # Attention: The printing of the next result sets is disabled.
19 SELECT * FROM information_schema.STATISTICS;
20 SELECT * FROM test.v1;
24 DROP PROCEDURE test.p1;
25 DROP FUNCTION test.f1;
26 #########################################################################
27 # Testcase 3.2.14.1: INFORMATION_SCHEMA.STATISTICS layout
28 #########################################################################
29 DESCRIBE information_schema.STATISTICS;
30 Field Type Null Key Default Extra
31 TABLE_CATALOG varchar(512) YES NULL
32 TABLE_SCHEMA varchar(64) NO
33 TABLE_NAME varchar(64) NO
34 NON_UNIQUE bigint(1) NO 0
35 INDEX_SCHEMA varchar(64) NO
36 INDEX_NAME varchar(64) NO
37 SEQ_IN_INDEX bigint(2) NO 0
38 COLUMN_NAME varchar(64) NO
39 COLLATION varchar(1) YES NULL
40 CARDINALITY bigint(21) YES NULL
41 SUB_PART bigint(3) YES NULL
42 PACKED varchar(10) YES NULL
43 NULLABLE varchar(3) NO
44 INDEX_TYPE varchar(16) NO
45 COMMENT varchar(16) YES NULL
46 SHOW CREATE TABLE information_schema.STATISTICS;
48 STATISTICS CREATE TEMPORARY TABLE `STATISTICS` (
49 `TABLE_CATALOG` varchar(512) DEFAULT NULL,
50 `TABLE_SCHEMA` varchar(64) NOT NULL DEFAULT '',
51 `TABLE_NAME` varchar(64) NOT NULL DEFAULT '',
52 `NON_UNIQUE` bigint(1) NOT NULL DEFAULT '0',
53 `INDEX_SCHEMA` varchar(64) NOT NULL DEFAULT '',
54 `INDEX_NAME` varchar(64) NOT NULL DEFAULT '',
55 `SEQ_IN_INDEX` bigint(2) NOT NULL DEFAULT '0',
56 `COLUMN_NAME` varchar(64) NOT NULL DEFAULT '',
57 `COLLATION` varchar(1) DEFAULT NULL,
58 `CARDINALITY` bigint(21) DEFAULT NULL,
59 `SUB_PART` bigint(3) DEFAULT NULL,
60 `PACKED` varchar(10) DEFAULT NULL,
61 `NULLABLE` varchar(3) NOT NULL DEFAULT '',
62 `INDEX_TYPE` varchar(16) NOT NULL DEFAULT '',
63 `COMMENT` varchar(16) DEFAULT NULL
64 ) ENGINE=MEMORY DEFAULT CHARSET=utf8
65 SHOW COLUMNS FROM information_schema.STATISTICS;
66 Field Type Null Key Default Extra
67 TABLE_CATALOG varchar(512) YES NULL
68 TABLE_SCHEMA varchar(64) NO
69 TABLE_NAME varchar(64) NO
70 NON_UNIQUE bigint(1) NO 0
71 INDEX_SCHEMA varchar(64) NO
72 INDEX_NAME varchar(64) NO
73 SEQ_IN_INDEX bigint(2) NO 0
74 COLUMN_NAME varchar(64) NO
75 COLLATION varchar(1) YES NULL
76 CARDINALITY bigint(21) YES NULL
77 SUB_PART bigint(3) YES NULL
78 PACKED varchar(10) YES NULL
79 NULLABLE varchar(3) NO
80 INDEX_TYPE varchar(16) NO
81 COMMENT varchar(16) YES NULL
82 SELECT table_catalog, table_schema, table_name, index_schema, index_name
83 FROM information_schema.statistics WHERE table_catalog IS NOT NULL;
84 table_catalog table_schema table_name index_schema index_name
85 ####################################################################################
86 # Testcase 3.2.14.2 + 3.2.14.3: INFORMATION_SCHEMA.STATISTICS accessible information
87 ####################################################################################
88 DROP DATABASE IF EXISTS db_datadict;
89 DROP DATABASE IF EXISTS db_datadict_2;
90 CREATE DATABASE db_datadict;
91 CREATE DATABASE db_datadict_2;
92 DROP USER 'testuser1'@'localhost';
93 CREATE USER 'testuser1'@'localhost';
94 DROP USER 'testuser2'@'localhost';
95 CREATE USER 'testuser2'@'localhost';
96 CREATE TABLE db_datadict.t1
97 (f1 INT NOT NULL, PRIMARY KEY(f1), f2 INT, INDEX f2_ind(f2))
98 ENGINE = <engine_type>;
99 CREATE TABLE db_datadict.t2
100 (f1 INT NOT NULL, PRIMARY KEY(f1), f2 INT, INDEX f2_ind(f2))
101 ENGINE = <engine_type>;
102 CREATE TABLE db_datadict_2.t3
103 (f1 INT NOT NULL, f2 INT, f5 DATE,
104 PRIMARY KEY(f1), INDEX f2f1_ind(f2,f1), UNIQUE(f5))
106 CREATE TABLE db_datadict_2.t4
107 (f1 INT NOT NULL, PRIMARY KEY(f1), f2 INT, INDEX f2_ind(f2))
109 SELECT * FROM information_schema.statistics
110 WHERE table_schema LIKE 'db_datadict%'
111 ORDER BY table_schema,table_name,index_name,seq_in_index,column_name;
112 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
113 NULL db_datadict t1 1 db_datadict f2_ind 1 f2 NULL 0 NULL NULL YES HASH
114 NULL db_datadict t1 0 db_datadict PRIMARY 1 f1 NULL 0 NULL NULL HASH
115 NULL db_datadict t2 1 db_datadict f2_ind 1 f2 NULL 0 NULL NULL YES HASH
116 NULL db_datadict t2 0 db_datadict PRIMARY 1 f1 NULL 0 NULL NULL HASH
117 NULL db_datadict_2 t3 1 db_datadict_2 f2f1_ind 1 f2 NULL NULL NULL NULL YES HASH
118 NULL db_datadict_2 t3 1 db_datadict_2 f2f1_ind 2 f1 NULL 0 NULL NULL HASH
119 NULL db_datadict_2 t3 0 db_datadict_2 f5 1 f5 NULL 0 NULL NULL YES HASH
120 NULL db_datadict_2 t3 0 db_datadict_2 PRIMARY 1 f1 NULL 0 NULL NULL HASH
121 NULL db_datadict_2 t4 1 db_datadict_2 f2_ind 1 f2 NULL 0 NULL NULL YES HASH
122 NULL db_datadict_2 t4 0 db_datadict_2 PRIMARY 1 f1 NULL 0 NULL NULL HASH
123 SHOW GRANTS FOR 'testuser1'@'localhost';
124 Grants for testuser1@localhost
125 GRANT USAGE ON *.* TO 'testuser1'@'localhost'
126 SHOW GRANTS FOR 'testuser2'@'localhost';
127 Grants for testuser2@localhost
128 GRANT USAGE ON *.* TO 'testuser2'@'localhost'
129 # Establish connection testuser1 (user=testuser1)
130 SELECT * FROM information_schema.statistics
131 WHERE table_schema LIKE 'db_datadict%'
132 ORDER BY table_schema,table_name,index_name,seq_in_index,column_name;
133 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
134 SHOW GRANTS FOR 'testuser1'@'localhost';
135 Grants for testuser1@localhost
136 GRANT USAGE ON *.* TO 'testuser1'@'localhost'
137 SHOW GRANTS FOR 'testuser2'@'localhost';
138 ERROR 42000: Access denied for user 'testuser1'@'localhost' to database 'mysql'
139 # Establish connection testuser2 (user=testuser2)
140 SELECT * FROM information_schema.statistics
141 WHERE table_schema LIKE 'db_datadict%'
142 ORDER BY table_schema,table_name,index_name,seq_in_index,column_name;
143 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
144 SHOW GRANTS FOR 'testuser1'@'localhost';
145 ERROR 42000: Access denied for user 'testuser2'@'localhost' to database 'mysql'
146 SHOW GRANTS FOR 'testuser2'@'localhost';
147 Grants for testuser2@localhost
148 GRANT USAGE ON *.* TO 'testuser2'@'localhost'
149 # Switch to connection default
150 GRANT SELECT ON db_datadict.t1 TO 'testuser1'@'localhost' WITH GRANT OPTION;
151 GRANT SELECT(f1,f5) ON db_datadict_2.t3 TO 'testuser1'@'localhost';
152 SELECT * FROM information_schema.statistics
153 WHERE table_schema LIKE 'db_datadict%'
154 ORDER BY table_schema,table_name,index_name,seq_in_index,column_name;
155 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
156 NULL db_datadict t1 1 db_datadict f2_ind 1 f2 NULL 0 NULL NULL YES HASH
157 NULL db_datadict t1 0 db_datadict PRIMARY 1 f1 NULL 0 NULL NULL HASH
158 NULL db_datadict t2 1 db_datadict f2_ind 1 f2 NULL 0 NULL NULL YES HASH
159 NULL db_datadict t2 0 db_datadict PRIMARY 1 f1 NULL 0 NULL NULL HASH
160 NULL db_datadict_2 t3 1 db_datadict_2 f2f1_ind 1 f2 NULL NULL NULL NULL YES HASH
161 NULL db_datadict_2 t3 1 db_datadict_2 f2f1_ind 2 f1 NULL 0 NULL NULL HASH
162 NULL db_datadict_2 t3 0 db_datadict_2 f5 1 f5 NULL 0 NULL NULL YES HASH
163 NULL db_datadict_2 t3 0 db_datadict_2 PRIMARY 1 f1 NULL 0 NULL NULL HASH
164 NULL db_datadict_2 t4 1 db_datadict_2 f2_ind 1 f2 NULL 0 NULL NULL YES HASH
165 NULL db_datadict_2 t4 0 db_datadict_2 PRIMARY 1 f1 NULL 0 NULL NULL HASH
166 SHOW GRANTS FOR 'testuser1'@'localhost';
167 Grants for testuser1@localhost
168 GRANT USAGE ON *.* TO 'testuser1'@'localhost'
169 GRANT SELECT ON `db_datadict`.`t1` TO 'testuser1'@'localhost' WITH GRANT OPTION
170 GRANT SELECT (f5, f1) ON `db_datadict_2`.`t3` TO 'testuser1'@'localhost'
171 SHOW GRANTS FOR 'testuser2'@'localhost';
172 Grants for testuser2@localhost
173 GRANT USAGE ON *.* TO 'testuser2'@'localhost'
174 # Switch to connection testuser1
175 SELECT * FROM information_schema.statistics
176 WHERE table_schema LIKE 'db_datadict%'
177 ORDER BY table_schema,table_name,index_name,seq_in_index,column_name;
178 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
179 NULL db_datadict t1 1 db_datadict f2_ind 1 f2 NULL 0 NULL NULL YES HASH
180 NULL db_datadict t1 0 db_datadict PRIMARY 1 f1 NULL 0 NULL NULL HASH
181 NULL db_datadict_2 t3 1 db_datadict_2 f2f1_ind 1 f2 NULL NULL NULL NULL YES HASH
182 NULL db_datadict_2 t3 1 db_datadict_2 f2f1_ind 2 f1 NULL 0 NULL NULL HASH
183 NULL db_datadict_2 t3 0 db_datadict_2 f5 1 f5 NULL 0 NULL NULL YES HASH
184 NULL db_datadict_2 t3 0 db_datadict_2 PRIMARY 1 f1 NULL 0 NULL NULL HASH
185 SHOW GRANTS FOR 'testuser1'@'localhost';
186 Grants for testuser1@localhost
187 GRANT USAGE ON *.* TO 'testuser1'@'localhost'
188 GRANT SELECT ON `db_datadict`.`t1` TO 'testuser1'@'localhost' WITH GRANT OPTION
189 GRANT SELECT (f5, f1) ON `db_datadict_2`.`t3` TO 'testuser1'@'localhost'
190 SHOW GRANTS FOR 'testuser2'@'localhost';
191 ERROR 42000: Access denied for user 'testuser1'@'localhost' to database 'mysql'
192 # Switch to connection testuser2
193 SELECT * FROM information_schema.statistics
194 WHERE table_schema LIKE 'db_datadict%'
195 ORDER BY table_schema,table_name,index_name,seq_in_index,column_name;
196 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
197 SHOW GRANTS FOR 'testuser1'@'localhost';
198 ERROR 42000: Access denied for user 'testuser2'@'localhost' to database 'mysql'
199 SHOW GRANTS FOR 'testuser2'@'localhost';
200 Grants for testuser2@localhost
201 GRANT USAGE ON *.* TO 'testuser2'@'localhost'
202 # Switch to connection default
203 REVOKE SELECT,GRANT OPTION ON db_datadict.t1 FROM 'testuser1'@'localhost';
204 SHOW GRANTS FOR 'testuser1'@'localhost';
205 Grants for testuser1@localhost
206 GRANT USAGE ON *.* TO 'testuser1'@'localhost'
207 GRANT SELECT (f5, f1) ON `db_datadict_2`.`t3` TO 'testuser1'@'localhost'
208 # Switch to connection testuser1
209 SELECT * FROM information_schema.statistics
210 WHERE table_schema LIKE 'db_datadict%'
211 ORDER BY table_schema,table_name,index_name,seq_in_index,column_name;
212 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
213 NULL db_datadict_2 t3 1 db_datadict_2 f2f1_ind 1 f2 NULL NULL NULL NULL YES HASH
214 NULL db_datadict_2 t3 1 db_datadict_2 f2f1_ind 2 f1 NULL 0 NULL NULL HASH
215 NULL db_datadict_2 t3 0 db_datadict_2 f5 1 f5 NULL 0 NULL NULL YES HASH
216 NULL db_datadict_2 t3 0 db_datadict_2 PRIMARY 1 f1 NULL 0 NULL NULL HASH
217 SHOW GRANTS FOR 'testuser1'@'localhost';
218 Grants for testuser1@localhost
219 GRANT USAGE ON *.* TO 'testuser1'@'localhost'
220 GRANT SELECT (f5, f1) ON `db_datadict_2`.`t3` TO 'testuser1'@'localhost'
221 # Switch to connection default and close connections testuser1, testuser2
222 DROP USER 'testuser1'@'localhost';
223 DROP USER 'testuser2'@'localhost';
224 DROP DATABASE db_datadict;
225 DROP DATABASE db_datadict_2;
226 #########################################################################
227 # 3.2.1.13+3.2.1.14+3.2.1.15: INFORMATION_SCHEMA.STATISTICS modifications
228 #########################################################################
229 DROP TABLE IF EXISTS test.t1_my_table;
230 DROP DATABASE IF EXISTS db_datadict;
231 CREATE DATABASE db_datadict;
232 CREATE TABLE test.t1_1 (f1 BIGINT,
233 f2 TEXT, f2x TEXT, f3 CHAR(10), f3x CHAR(10), f4 BIGINT, f4x BIGINT,
234 f5 POINT, f5x POINT NOT NULL)
235 DEFAULT CHARACTER SET latin1 COLLATE latin1_swedish_ci
236 ENGINE = <other_engine_type>;
237 CREATE TABLE test.t1_2 (f1 BIGINT, f2 BIGINT)
238 ENGINE = <engine_type>;
239 SELECT table_name FROM information_schema.statistics
240 WHERE table_name LIKE 't1_%';
242 ALTER TABLE test.t1_1 ADD PRIMARY KEY (f1,f3);
243 SELECT * FROM information_schema.statistics
244 WHERE table_name LIKE 't1_%'
245 ORDER BY table_schema,table_name,index_name,seq_in_index,column_name;
246 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
247 NULL test t1_1 0 test PRIMARY 1 f1 A NULL NULL NULL BTREE
248 NULL test t1_1 0 test PRIMARY 2 f3 A 0 NULL NULL BTREE
249 ALTER TABLE test.t1_1 DROP PRIMARY KEY;
250 SELECT table_name FROM information_schema.statistics
251 WHERE table_name LIKE 't1_%';
253 ALTER TABLE test.t1_1 ADD PRIMARY KEY (f1);
254 SELECT * FROM information_schema.statistics
255 WHERE table_name LIKE 't1_%';
256 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
257 NULL test t1_1 0 test PRIMARY 1 f1 A 0 NULL NULL BTREE
258 ALTER TABLE test.t1_1 ADD INDEX (f4);
259 CREATE INDEX f3_f1 ON test.t1_1 (f3,f1);
260 CREATE UNIQUE INDEX f4x_uni ON test.t1_1 (f4x);
261 CREATE INDEX f2_hash USING HASH ON test.t1_2 (f2);
262 CREATE INDEX f1_idx ON test.t1_2 (f1) COMMENT = 'COMMENT';
263 ERROR 42000: You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'COMMENT = 'COMMENT'' at line 1
264 CREATE INDEX not_null ON test.t1_1 (f3x);
265 CREATE INDEX f2_prefix ON test.t1_1 (f2(20));
266 SELECT * FROM information_schema.statistics
267 WHERE table_name LIKE 't1_%' AND index_name <> 'PRIMARY'
268 ORDER BY table_schema,table_name,index_name,seq_in_index,column_name;
269 TABLE_CATALOG TABLE_SCHEMA TABLE_NAME NON_UNIQUE INDEX_SCHEMA INDEX_NAME SEQ_IN_INDEX COLUMN_NAME COLLATION CARDINALITY SUB_PART PACKED NULLABLE INDEX_TYPE COMMENT
270 NULL test t1_1 1 test f2_prefix 1 f2 A NULL 20 NULL YES BTREE
271 NULL test t1_1 1 test f3_f1 1 f3 A NULL NULL NULL BTREE
272 NULL test t1_1 1 test f3_f1 2 f1 A NULL NULL NULL BTREE
273 NULL test t1_1 1 test f4 1 f4 A NULL NULL NULL YES BTREE
274 NULL test t1_1 0 test f4x_uni 1 f4x A NULL NULL NULL YES BTREE
275 NULL test t1_1 1 test not_null 1 f3x A NULL NULL NULL YES BTREE
276 NULL test t1_2 1 test f2_hash 1 f2 NULL 0 NULL NULL YES HASH
277 DROP TABLE test.t1_2;
278 SELECT DISTINCT table_name FROM information_schema.statistics
279 WHERE table_name = 't1_1';
282 RENAME TABLE test.t1_1 TO test.t1_1x;
283 SELECT DISTINCT table_name FROM information_schema.statistics
284 WHERE table_name = 't1_1x';
287 SELECT DISTINCT table_schema,table_name FROM information_schema.statistics
288 WHERE table_name LIKE 't1_1%';
289 table_schema table_name
291 RENAME TABLE test.t1_1x TO db_datadict.t1_1x;
292 SELECT DISTINCT table_schema,table_name FROM information_schema.statistics
293 WHERE table_name LIKE 't1_1%';
294 table_schema table_name
296 SELECT DISTINCT table_name FROM information_schema.statistics
297 WHERE table_name = 't1_1x';
300 DROP TABLE db_datadict.t1_1x;
301 SELECT DISTINCT table_name FROM information_schema.statistics
302 WHERE table_name = 't1_1x';
304 CREATE TEMPORARY TABLE test.t1_1x (PRIMARY KEY(f1,f2))
305 ENGINE = <engine_type>
306 AS SELECT 1 AS f1, 2 AS f2;
307 SELECT * FROM information_schema.statistics
308 WHERE table_name = 't1_1x';
309 DROP TEMPORARY TABLE test.t1_1x;
310 CREATE TABLE db_datadict.t1_1x (PRIMARY KEY(f1))
311 ENGINE = <engine_type>
312 AS SELECT 1 AS f1, 2 AS f2;
313 SELECT table_name FROM information_schema.statistics
314 WHERE table_name = 't1_1x';
317 DROP DATABASE db_datadict;
318 SELECT table_name FROM information_schema.statistics
319 WHERE table_name = 't1_1x';
321 ########################################################################
322 # Testcases 3.2.1.3-3.2.1.5 + 3.2.1.8-3.2.1.12: INSERT/UPDATE/DELETE and
323 # DDL on INFORMATION_SCHEMA tables are not supported
324 ########################################################################
325 DROP DATABASE IF EXISTS db_datadict;
326 CREATE DATABASE db_datadict;
327 CREATE TABLE db_datadict.t1 (f1 BIGINT)
328 ENGINE = <engine_type>;
329 INSERT INTO information_schema.statistics
330 SELECT * FROM information_schema.statistics;
331 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
332 UPDATE information_schema.statistics SET table_schema = 'test'
333 WHERE table_name = 't1';
334 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
335 DELETE FROM information_schema.statistics WHERE table_name = 't1';
336 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
337 TRUNCATE information_schema.statistics;
338 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
339 CREATE INDEX my_idx_on_statistics
340 ON information_schema.statistics(table_schema);
341 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
342 ALTER TABLE information_schema.statistics DROP PRIMARY KEY;
343 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
344 ALTER TABLE information_schema.statistics ADD f1 INT;
345 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
346 DROP TABLE information_schema.statistics;
347 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
348 ALTER TABLE information_schema.statistics RENAME db_datadict.statistics;
349 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
350 ALTER TABLE information_schema.statistics RENAME information_schema.xstatistics;
351 ERROR 42000: Access denied for user 'root'@'localhost' to database 'information_schema'
352 DROP DATABASE db_datadict;