config root man

Current Path : /home/usr.opt/mysql57/mysql-test/suite/perfschema/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/perfschema/t/start_server_no_prepared_stmts_instances.test

--source include/not_embedded.inc
--source include/have_perfschema.inc
--source include/no_protocol.inc

--source ../include/start_server_common.inc

CREATE DATABASE db;
USE db; 

# Expect no history

show global variables like "performance_schema_max_prepared_statements_instances";
select count(*) from performance_schema.prepared_statements_instances;

# Valid operation, edge case

truncate table performance_schema.prepared_statements_instances;

# Prepare statements
--source suite/perfschema/include/prepared_stmts_setup.inc

# check the lost status
show global status like "%performance_schema_prepared_statements_lost%";

# Execute statements 
--source suite/perfschema/include/prepared_stmts_execution.inc

# check the lost status
show global status like "%performance_schema_prepared_statements_lost%";

# deallocate prepared statements 
--source suite/perfschema/include/prepared_stmts_deallocation.inc

# check the lost status 
show global status like "%performance_schema_prepared_statements_lost%";

# Flush status now
flush status;

# status after flush. expect 0.
show global status like "%performance_schema_prepared_statements_lost%";

DROP DATABASE db; 

Man Man