2011-07-18 23:04:24 +02:00
|
|
|
--source include/have_xtradb.inc
|
2011-04-29 14:49:04 +02:00
|
|
|
--disable_warnings
|
|
|
|
DROP TABLE IF EXISTS t1;
|
|
|
|
--enable_warnings
|
2011-07-14 21:22:41 +02:00
|
|
|
SET GLOBAL userstat=ON;
|
2011-04-29 14:49:04 +02:00
|
|
|
CREATE TABLE t1 ( id int(10), PRIMARY KEY (id)) ENGINE=InnoDB;
|
|
|
|
INSERT INTO t1 VALUES (1),(2),(3),(4),(5),(6),(7),(8),(9),(10);
|
|
|
|
SELECT COUNT(*) FROM t1;
|
|
|
|
SELECT ROWS_READ FROM information_schema.table_statistics WHERE TABLE_NAME='t1';
|
|
|
|
SELECT ROWS_READ FROM information_schema.index_statistics WHERE TABLE_NAME='t1';
|
2011-07-14 21:22:41 +02:00
|
|
|
SET GLOBAL userstat=OFF;
|
2011-07-18 23:04:24 +02:00
|
|
|
DROP TABLE t1;
|