config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/innodb/t/

FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64
Upload File :
Current File : //home/usr.opt/mysql57/mysql-test/suite/innodb/t/analyze_index.test

--source include/have_innodb.inc
--source include/have_debug_sync.inc
--source include/count_sessions.inc

--echo	#
--echo  # Bug #30607708	IF ANALYZE TABLE RUNS MORE THAN 600 SECONDS DIAGNOSTIC QUERY MAY CRASH SERVER
--echo	#

CREATE TABLE t1(a int, index inda(a)) ENGINE=INNODB;
INSERT INTO t1 VALUES(1);

SET DEBUG_SYNC='innodb_dict_stats_update_persistent SIGNAL analyze.running WAIT_FOR analyze.finish';
--send ANALYZE TABLE t1

# ANALYZE TABLE is running. Query for stats.

--connect(con1, localhost, root)
SET DEBUG_SYNC='now WAIT_FOR analyze.running';

--disable_result_log
SELECT ENGINE,SUM(DATA_LENGTH+INDEX_LENGTH),COUNT(ENGINE),SUM(DATA_LENGTH),SUM(INDEX_LENGTH) FROM information_schema.TABLES WHERE TABLE_SCHEMA NOT IN ('information_schema', 'performance_schema', 'mysql') AND ENGINE='InnoDB';
--enable_result_log

# let the ANALYZE TABLE to finish
SET DEBUG_SYNC='now SIGNAL analyze.finish';
--disconnect con1

--connection default
--reap
SET DEBUG_SYNC= 'RESET';
DROP TABLE t1;


Man Man